From b904cb733750de1bb0e04e5012c391a9c3094d11 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 18 Jun 2019 16:09:44 +1000 Subject: Disable -Waddress-of-packed-member for GCC9 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 --- Makefile.main | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.main b/Makefile.main index 1937878..fac6e44 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) -- cgit v1.1