1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

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.
This commit is contained in:
Paul Eggert 2025-12-13 21:32:07 -08:00
parent f8cf01134b
commit 1880cd0aa5

View file

@ -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 <vla.h>.
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