From cfb775aa0d83b99439b33974efeae0e7ed431354 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 1 Dec 2018 10:23:04 +0100 Subject: gcc8 workarounds Before previous commit, compiling with gcc8 would have need: -Wno-error=format-overflow -Wno-error=format-security But now, only -Wno-error=format-truncation is needed. rationale: gcc bogusly complains about snprintf() being unsafe. See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77721 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78969 --- mdk-stage1/Makefile | 2 +- mdk-stage1/NEWS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mdk-stage1/Makefile b/mdk-stage1/Makefile index bac3ab97a..34c693698 100644 --- a/mdk-stage1/Makefile +++ b/mdk-stage1/Makefile @@ -32,7 +32,7 @@ endif DEFS = -DDISTRIB_NAME=\"$(DISTRIB_NAME)\" -DDISTRIB_VERSION=\"$(DISTRIB_VERSION)\" -DDISTRIB_TYPE=\"$(DISTRIB_TYPE)\" -DDISTRIB_DESCR=\"$(DISTRIB_DESCR)\" $(ADDITIONAL_DEFS) -D_FILE_OFFSET_BITS=64 -DARCH=\"$(ARCHDIR)\" -DCONFIG_USE_ZLIB -COMPILE = $(CC) $(DEFS) $(CFLAGS) +COMPILE = $(CC) $(DEFS) $(CFLAGS) -Wno-error=format-truncation INITSRC = init.c diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS index 08e5d21d1..dc05ca0b4 100644 --- a/mdk-stage1/NEWS +++ b/mdk-stage1/NEWS @@ -1,4 +1,5 @@ - fix compiling with gcc8 +- compile with -Wno-error=format-truncation for now 2.34 -- cgit v1.2.1