aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-05-04 11:40:28 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-05-04 03:25:04 -0500
commit777de50ec25658039bc962b1a795227ac74ad0b1 (patch)
tree56f183515bd8078db788d8ca7bda0b79a11bb660 /Makefile.main
parent97cb32538ac0cdbab4a7dfed3c85fdca0b39701a (diff)
downloadskiboot-777de50ec25658039bc962b1a795227ac74ad0b1.zip
skiboot-777de50ec25658039bc962b1a795227ac74ad0b1.tar.gz
skiboot-777de50ec25658039bc962b1a795227ac74ad0b1.tar.bz2
Makefile: Disable warnings to make clang happy
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> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index 05222a1..8cd5e2d 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -163,6 +163,17 @@ 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 \
+ -Wno-address-of-packed-member
+
+# pci_add_device_nodes is the largest, at 2048 with clang-7 (smaller with older
+# versions)
+CFLAGS += -Wframe-larger-than=2048
endif
# Special tool flags: