summaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-05-10 22:04:59 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-06-27 23:53:47 +0000
commit0b4d5648f2996ccb07a6a44f1d0276f9a2903f25 (patch)
tree829390688d84d33b24a4a7c0b63f759f8c369980 /util/xcompile
parentcb3205d153b7fa80aef4f91c5b5aa3ba636dc777 (diff)
downloadcoreboot-0b4d5648f2996ccb07a6a44f1d0276f9a2903f25.tar.xz
xcompile: silence clang when referencing packed structs' members
clang complains that the access might be unaligned. Yes, we know. Yes, that's exactly what we want. You have _one_ job. Change-Id: I5400f50d8b5b462270c700f7ff90d9d517278e71 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/19659 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index c84780b0ce..66073fe574 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -254,7 +254,7 @@ CLANG_CC_${TARCH}:=${CLANG}
CLANG_CFLAGS_${TARCH}:=${CFLAGS_CLANG}
CLANG_CFLAGS_${TARCH}+=-no-integrated-as -Qunused-arguments -m${TWIDTH}
# tone down clang compiler warnings
-CLANG_CFLAGS_${TARCH}+=-Wno-unused-variable -Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow
+CLANG_CFLAGS_${TARCH}+=-Wno-unused-variable -Wno-unused-function -Wno-tautological-compare -Wno-shift-overflow -Wno-address-of-packed-member
CLANG_COMPILER_RT_${TARCH}:=${CC_RT_CLANG}
CLANG_COMPILER_RT_FLAGS_${TARCH}:=${CC_RT_EXTRA_CLANG}