aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-05-29 15:39:00 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-05-29 15:48:48 +1000
commit918b7233d3bb7f061030b197fa0df53530f189f6 (patch)
tree6b6161eb29e1514773d35af1740af0d1725efcdf
parent70d544de8739abbc381398cbfd07a6bd6dc8c1a5 (diff)
downloadskiboot-918b7233d3bb7f061030b197fa0df53530f189f6.zip
skiboot-918b7233d3bb7f061030b197fa0df53530f189f6.tar.gz
skiboot-918b7233d3bb7f061030b197fa0df53530f189f6.tar.bz2
Add -Wno-stringop-truncation for GCC8
This warning appears to not be particularly useful if you ever actually *want* to truncate a string. Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--Makefile.main1
-rw-r--r--external/gard/rules.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index 6e0e4be..a155e1e 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -31,6 +31,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-Wwrite-strings -Wcast-align \
-Winit-self \
-Wframe-larger-than=1024 \
+ -Wno-stringop-truncation \
-Werror
# Host tools and options
diff --git a/external/gard/rules.mk b/external/gard/rules.mk
index a0bcfdc..3af5d1a 100644
--- a/external/gard/rules.mk
+++ b/external/gard/rules.mk
@@ -1,6 +1,6 @@
.DEFAULT_GOAL := all
-override CFLAGS += -O2 -Wall -Werror -I.
+override CFLAGS += -O2 -Wall -Werror -Wno-stringop-truncation -I.
OBJS = version.o gard.o units.o
LIBFLASH_FILES := libflash.c libffs.c ecc.c blocklevel.c file.c
LIBFLASH_OBJS := $(addprefix libflash-, $(LIBFLASH_FILES:.c=.o))