From 1880cd0aa544fa77bdbd1bb1870d8f8458b2b79c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 13 Dec 2025 21:32:07 -0800 Subject: [PATCH] Use GCC warning -Wunused-const-variable=2 * configure.ac: Stop suppresssing -Wunused-const-variable=2 when configured --with-gcc-warnings. Suppressing no longer seems to be needed with current GCC and src/lisp.h. --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index 80991f3866c..9d113be88d5 100644 --- a/configure.ac +++ b/configure.ac @@ -1798,7 +1798,6 @@ AS_IF([test $gl_gcc_warnings = no], nw="$nw -Wformat-overflow=2" # False alarms due to GCC bug 110333 nw="$nw -Woverlength-strings" # Not a problem these days nw="$nw -Wvla" # Emacs uses . - nw="$nw -Wunused-const-variable=2" # lisp.h declares const objects. nw="$nw -Winline" # OK to ignore 'inline' nw="$nw -Wstrict-overflow" # OK to optimize assuming that # signed overflow has undefined behavior