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

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