]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Enable -Werror=format-diag during bootstrap.
authorMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 10:54:59 +0000 (11:54 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 11:16:04 +0000 (12:16 +0100)
gcc/ChangeLog:

* configure.ac: Remove -Wno-error=format-diag.
* configure: Regenerate.

gcc/configure
gcc/configure.ac

index fd7227078e4a076375045c2bc1b7e4f699d594f2..3b228c3d9dc4af19cf1dc137e3923235263af1f5 100755 (executable)
@@ -7089,7 +7089,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
 loose_warn=
 save_CXXFLAGS="$CXXFLAGS"
-for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
+for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
   # Do the check with the no- prefix removed since gcc silently
   # accepts any -Wno-* option on purpose
   case $real_option in
@@ -7147,7 +7147,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 c_loose_warn=
 save_CFLAGS="$CFLAGS"
-for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
+for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
   # Do the check with the no- prefix removed since gcc silently
   # accepts any -Wno-* option on purpose
   case $real_option in
index 40cfd38fe56ceed7fbf5dd96bf3c55a40005c34f..472d1c8c341fdd07250d205773d94f8398e6207d 100644 (file)
@@ -573,11 +573,11 @@ AS_IF([test $enable_build_format_warnings = no],
       [wf_opt=-Wno-format],[wf_opt=])
 ACX_PROG_CXX_WARNING_OPTS(
        m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
-                      [-Wcast-qual -Wno-error=format-diag $wf_opt])),
+                      [-Wcast-qual $wf_opt])),
                       [loose_warn])
 ACX_PROG_CC_WARNING_OPTS(
        m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes ],
-                      [-Wno-error=format-diag])), [c_loose_warn])
+                      [])), [c_loose_warn])
 ACX_PROG_CXX_WARNING_OPTS(
        m4_quote(m4_do([-Wmissing-format-attribute ],
                       [-Woverloaded-virtual])), [strict_warn])