Skip to content

Commit

Permalink
Makefile: Disable warnings to make clang happy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shenki authored and stewartsmith committed May 4, 2018
1 parent 97cb325 commit 777de50
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 777de50

Please sign in to comment.