diff options
author | Peter Foley <[email protected]> | 2016-11-26 17:22:29 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-11-28 07:47:22 +0100 |
commit | adee8705d2517f0e163ffc45e8d7f9e97a58f1f6 (patch) | |
tree | d5a1bae0aa7490d54a8e07d54a0856f3c35f5475 | |
parent | 20ab6677716c7bbdcfd1cdb9aef296a0b3101f73 (diff) |
x86/build: Annotate die() with noreturn to fix build warning on clang
Fixes below warning with clang:
In file included from ../arch/x86/tools/relocs_64.c:17:
../arch/x86/tools/relocs.c:977:6: warning: variable 'do_reloc' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
Signed-off-by: Peter Foley <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | arch/x86/tools/relocs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/tools/relocs.h b/arch/x86/tools/relocs.h index f59590645b68..1d23bf953a4a 100644 --- a/arch/x86/tools/relocs.h +++ b/arch/x86/tools/relocs.h @@ -16,7 +16,7 @@ #include <regex.h> #include <tools/le_byteshift.h> -void die(char *fmt, ...); +void die(char *fmt, ...) __attribute__((noreturn)); #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |