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

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