summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-12-10 19:30:22 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-12-12 13:29:47 +0100
commit8916d0dcc48f8c22b2825524b2d59545ad7e7d61 (patch)
tree94d1835a72a0f26191c8454ee21b2935600f7d86
parent84c3c568b918186b6bbf69a51d789ff1ba993353 (diff)
downloadcoreboot-8916d0dcc48f8c22b2825524b2d59545ad7e7d61.tar.xz
Makefile: Tone down some clang warnings, some are unproductive
Too many false positives, not useful enough for us at the moment at the cost of not having the whole tree build without warnings as errors. Change-Id: I9f9910b7f66ebf3a82d42e7732e413ba27dbbbe7 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7778 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: build bot (Jenkins)
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index eaba3e48c6..6ef9838919 100644
--- a/Makefile
+++ b/Makefile
@@ -118,6 +118,8 @@ ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
# NOTE: clang puts compiler-rt under lib/linux/libclang_rt.builtins-i386.a
# this means the triple is i386-linux-elf instead of i386-none-elf
CFLAGS_x86_32 = -no-integrated-as -Qunused-arguments -target i386-linux-elf -m32
+# Tone down some clang warnings
+CFLAGS_x86_32 += -Wno-unused-variable -Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow
CC_x86_32:=clang
HOSTCC := clang