]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: port test warnings to GCC 14
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 May 2024 05:44:23 +0000 (22:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 May 2024 06:09:32 +0000 (23:09 -0700)
* configure.ac: Disable GCC 14’s -Wmissing-variable-declarations
in the test directory, as it’s not worth the aggravation there.
Likewise for GCC's -Wsuggest-attribute=cold.

configure.ac

index 70c8a65c63b0871670e38d5ade809d83cc984ef3..db7664e7fe3b36c64df0333519d7fde3c114988c 100644 (file)
@@ -259,6 +259,7 @@ if test $gl_gcc_warnings != no; then
   nw=$ew
   nw="$nw -Wduplicated-branches"    # Too many false alarms
   nw="$nw -Wformat-truncation=2"
+  nw="$nw -Wmissing-variable-declarations"
   nw="$nw -Wstrict-overflow"
   nw="$nw -Wuninitialized"
   nw="$nw -Wunused-macros"
@@ -283,6 +284,7 @@ if test $gl_gcc_warnings != no; then
   nw=
   nw="$nw -Wstrict-prototypes"
   # It's not worth being this picky about test programs.
+  nw="$nw -Wsuggest-attribute=cold"
   nw="$nw -Wsuggest-attribute=const"
   nw="$nw -Wsuggest-attribute=format"
   nw="$nw -Wsuggest-attribute=pure"