]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: minor followon touchup of GCC warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 May 2025 04:01:14 +0000 (21:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 May 2025 04:02:56 +0000 (21:02 -0700)
* configure.ac (GNULIB_TEST_WARN_CFLAGS):
Do not use -Wsuggest-attribute=cold, -Wsuggest-attribute=const,
-Wsuggest-attribute=format as they produce false positives with
GCC 15 x86-64.  Use -Wmissing-variable-declarations, as it no
longer seems to hurt.

configure.ac

index 9c8721f885b178b6d5edefb7934300ca6f243725..54af30535d6aae1a8b3339d7174e7aa9e82405f5 100644 (file)
@@ -242,7 +242,9 @@ if test $gl_gcc_warnings != no; then
   # For gnulib-tests, the set is slightly smaller still.
   nw=
   # It's not worth being this picky about test programs.
-  nw="$nw -Wmissing-variable-declarations"
+  nw="$nw -Wsuggest-attribute=cold"
+  nw="$nw -Wsuggest-attribute=const"
+  nw="$nw -Wsuggest-attribute=format"
   nw="$nw -Wsuggest-attribute=pure"
   gl_MANYWARN_COMPLEMENT([GNULIB_TEST_WARN_CFLAGS],
                          [$GNULIB_WARN_CFLAGS], [$nw])