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

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