[coreboot-gerrit] Change in coreboot[master]: xcompile: silence clang when referencing packed structs' mem...

Patrick Georgi (Code Review) gerrit at coreboot.org
Wed May 10 22:09:45 CEST 2017


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 at 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}
 

-- 
To view, visit https://review.coreboot.org/19659
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5400f50d8b5b462270c700f7ff90d9d517278e71
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Patrick Georgi <pgeorgi at google.com>



More information about the coreboot-gerrit mailing list