[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>
This commit is contained in:
Michael Brown
2017-03-29 10:36:03 +03:00
parent 28e26dd250
commit 5f85cbb9ee
8 changed files with 23 additions and 2 deletions

View File

@@ -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.