summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-12-01 10:23:04 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-12-01 13:59:04 +0100
commitcfb775aa0d83b99439b33974efeae0e7ed431354 (patch)
tree60f4a3d3b11f2085c37fc1b1c89b95210af1d96d
parent047af8e25d0d4827ac6dd80db8ff47944c93f067 (diff)
downloaddrakx-cfb775aa0d83b99439b33974efeae0e7ed431354.tar
drakx-cfb775aa0d83b99439b33974efeae0e7ed431354.tar.gz
drakx-cfb775aa0d83b99439b33974efeae0e7ed431354.tar.bz2
drakx-cfb775aa0d83b99439b33974efeae0e7ed431354.tar.xz
drakx-cfb775aa0d83b99439b33974efeae0e7ed431354.zip
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
-rw-r--r--mdk-stage1/Makefile2
-rw-r--r--mdk-stage1/NEWS1
2 files changed, 2 insertions, 1 deletions
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