Patrick Georgi has uploaded a new change for review. ( https://review.coreboot.org/19659 )
Change subject: xcompile: silence clang when referencing packed structs' members ......................................................................
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 --- M util/xcompile/xcompile 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/19659/1
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 347ae8e..6986b53 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -250,7 +250,7 @@ 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}