Blame SOURCES/gcc8-Wno-format-security.patch

f56e54
2017-02-25  Jakub Jelinek  <jakub@redhat.com>
f56e54
f56e54
	* configure.ac: When adding -Wno-format, also add -Wno-format-security.
f56e54
	* configure: Regenerated.
f56e54
f56e54
--- gcc/configure.ac.jj	2017-02-13 12:20:53.000000000 +0100
f56e54
+++ gcc/configure.ac	2017-02-25 12:42:32.859175403 +0100
f56e54
@@ -481,7 +481,7 @@ AC_ARG_ENABLE(build-format-warnings,
f56e54
   AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
f56e54
   [],[enable_build_format_warnings=yes])
f56e54
 AS_IF([test $enable_build_format_warnings = no],
f56e54
-      [wf_opt=-Wno-format],[wf_opt=])
f56e54
+      [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
f56e54
 ACX_PROG_CXX_WARNING_OPTS(
f56e54
 	m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
f56e54
 		       [-Wcast-qual $wf_opt])), [loose_warn])
f56e54
--- gcc/configure.jj	2017-02-13 12:20:52.000000000 +0100
f56e54
+++ gcc/configure	2017-02-25 12:42:50.041946391 +0100
f56e54
@@ -6647,7 +6647,7 @@ else
f56e54
 fi
f56e54
 
f56e54
 if test $enable_build_format_warnings = no; then :
f56e54
-  wf_opt=-Wno-format
f56e54
+  wf_opt="-Wno-format -Wno-format-security"
f56e54
 else
f56e54
   wf_opt=
f56e54
 fi