tstellar / rpms / gcc

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