Skip to content

Commit

Permalink
Add -Wno-stringop-truncation for GCC8
Browse files Browse the repository at this point in the history
[ Upstream commit 918b723 ]

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>
  • Loading branch information
stewartsmith committed Oct 24, 2018
1 parent 88275cf commit b76911b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile.main
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion external/gard/rules.mk
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit b76911b

Please sign in to comment.