mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user