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

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