Skip to content

Commit

Permalink
Makefile: Check -Wno-stringop-truncation is supported
Browse files Browse the repository at this point in the history
The cross compiler on my system throws a fit as it does not understand
this option:

 cc1: error: unrecognized command line option '-Wno-stringop-truncation' [-Werror]

Fixes: 918b723 ("Add -Wno-stringop-truncation for GCC8")
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 Mar 5, 2019
1 parent 450b429 commit cd2b103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Wwrite-strings -Wcast-align \
-Winit-self \
-Wframe-larger-than=1024 \
-Wno-stringop-truncation \
$(call try-cflag,$(CC),--Wno-stringop-truncation) \
-Werror

# Host tools and options
Expand Down

0 comments on commit cd2b103

Please sign in to comment.