diff mbox series

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

Message ID 20180502083753.25090-14-joel@jms.id.au
State Superseded
Headers show
Series Support building with clang | expand

Commit Message

Joel Stanley May 2, 2018, 8:37 a.m. UTC
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@jms.id.au>
---
 Makefile.main | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

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: