From 0b4d5648f2996ccb07a6a44f1d0276f9a2903f25 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 10 May 2017 22:04:59 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/19659 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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} -- cgit v1.2.3