From 36e83a6bcd055456fc366bbd71199ad786083521 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 9 May 2025 21:01:14 -0700 Subject: [PATCH] maint: minor followon touchup of GCC warnings * 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9c8721f885..54af30535d 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 2.47.3