From c0afab671cfba7f9ce5610dbd0b2901506ee0862 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 19 Jan 2026 12:24:14 -0800 Subject: [PATCH] Omit -Wzero-as-null-pointer-constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac: If --enable-gcc-warnings, don’t use -Wzero-as-null-pointer-constant, which is enabled by default with bleeding-edge Gnulib (as there seems to be movement in this direction in C2y). Although -Wzero-as-null-pointer-constant is useful, Emacs isn’t clean for it yet. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 0c1c1e2d789..4615717094b 100644 --- a/configure.ac +++ b/configure.ac @@ -1804,6 +1804,7 @@ AS_IF([test $gl_gcc_warnings = no], nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations nw="$nw -Wbad-function-cast" # These casts are no worse than others. + nw="$nw -Wzero-as-null-pointer-constant" # Emacs is not yet C2y-safe. # Emacs doesn't care about shadowing; see # .