diff options
author | Behan Webster <behanw@converseincode.com> | 2014-08-01 00:08:25 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-08-05 09:40:01 -0400 |
commit | 26ea6bb1fef06c686be771903ecab0518af5c2de (patch) | |
tree | 9e74b8c2f493bffb2f721be4b1b831d2866663b7 /Makefile | |
parent | bfaf2dd3509bc73bf4a4cea0e72472755ed860e2 (diff) |
kbuild, LLVMLinux: Supress warnings unless W=1-3
clang has more warnings enabled by default. Turn them off unless W is
set. This patch fixes a logic bug where warnings in clang were disabled
when W was set.
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Cc: bp@alien8.de
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -663,6 +663,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) | |||
663 | # source of a reference will be _MergedGlobals and not on of the whitelisted names. | 663 | # source of a reference will be _MergedGlobals and not on of the whitelisted names. |
664 | # See modpost pattern 2 | 664 | # See modpost pattern 2 |
665 | KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) | 665 | KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) |
666 | KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) | ||
666 | else | 667 | else |
667 | 668 | ||
668 | # This warning generated too much noise in a regular build. | 669 | # This warning generated too much noise in a regular build. |