[Skiboot] [PATCH] Disable -Waddress-of-packed-member for GCC9

Stewart Smith stewart at linux.ibm.com
Tue Jun 18 16:09:44 AEST 2019


We throw a bunch of errors in errorlog code otherwise, which we should
fix, but we don't *have* to yet.

Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 Makefile.main | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.main b/Makefile.main
index 193787894b4b..fac6e4487460 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -125,7 +125,8 @@ endif
 CFLAGS += $(call try-cflag,$(CC),-Wjump-misses-init) \
 	  $(call try-cflag,$(CC),-Wsuggest-attribute=const) \
 	  $(call try-cflag,$(CC),-Wsuggest-attribute=noreturn) \
-	  $(call try-cflag,$(CC),-Wstack-usage=1024)
+	  $(call try-cflag,$(CC),-Wstack-usage=1024) \
+	  $(call try-cflag,$(CC),-Wno-error=address-of-packed-member)
 
 CFLAGS += $(CWARNS) $(OPTS) $(DBG)
 
-- 
2.21.0



More information about the Skiboot mailing list