diff options
author | Michael Brown | 2017-03-29 09:36:03 +0200 |
---|---|---|
committer | Michael Brown | 2017-03-29 09:36:45 +0200 |
commit | 5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f (patch) | |
tree | 3f69e821428c32483724f3f1ba83f4211ec11572 /src/tests | |
parent | [mucurses] Fix erroneous __nonnull attribute (diff) | |
download | ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.gz ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.tar.xz ipxe-5f85cbb9ee1c00cec81a848a9e871ad5d1e7f53f.zip |
[build] Avoid implicit-fallthrough warnings on GCC 7
Reported-by: Vinson Lee <vlee@freedesktop.org>
Reported-by: Liang Yan <lyan@suse.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/setjmp_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/setjmp_test.c b/src/tests/setjmp_test.c index 50ad13f3..deafcee0 100644 --- a/src/tests/setjmp_test.c +++ b/src/tests/setjmp_test.c @@ -111,8 +111,9 @@ static void setjmp_return_ok ( struct setjmp_test *test, int value ) { * @v file Test code file * @v line Test code line */ -static void longjmp_okx ( struct setjmp_test *test, int value, - const char *file, unsigned int line ) { +static void __attribute__ (( noreturn )) +longjmp_okx ( struct setjmp_test *test, int value, + const char *file, unsigned int line ) { /* Record expected value. A zero passed to longjmp() should * result in setjmp() returning a value of one. |