From 23bf614e46d253de523faa35dd8b8a778b809f58 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 16 May 2024 22:44:23 -0700 Subject: [PATCH] maint: port test warnings to GCC 14 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 70c8a65c63..db7664e7fe 100644 --- a/configure.ac +++ b/configure.ac @@ -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" -- 2.47.2