[Skiboot] [PATCH 13/13] Makefile: Disable warnings to make clang happy

Joel Stanley joel at jms.id.au
Wed May 2 18:37:53 AEST 2018


Clang doesn't like some of the warnings we have, so silence the ones we
know about in order to enable the build to succeed. These should be
investigated and removed in once the code issues are resolved.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 Makefile.main | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile.main b/Makefile.main
index cd4b9161b665..26605961b60e 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -164,6 +164,14 @@ CFLAGS += -mcpu=pwr8
 LDFLAGS += -mcpu=pwr8
 ASFLAGS += -mcpu=pwr8
 
+# Workarounds
+# TODO: Fix the issues these hide, and remove them
+CFLAGS += -Wno-cast-align \
+	-Wno-unused-command-line-argument \
+	-Wno-unknown-warning-option \
+	-Wno-gnu-variable-sized-type-not-at-end \
+	-Wframe-larger-than=1536 \
+	-Wno-address-of-packed-member
 endif
 
 # Special tool flags:
-- 
2.17.0



More information about the Skiboot mailing list