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

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