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

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