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

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