From 90a0aac3e8ebfb9f3c1df04deb9c85414f3530c0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 4 Nov 2022 11:00:49 -0700 Subject: [PATCH] Pacify gcc -Wanalyzer-null-dereference MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is for gcc 12.2.1 20220819 (Red Hat 12.2.1-2) x86-64 when Emacs is configured with --enable-gcc-warnings. * src/buffer.c (Fmove_overlay): Prefer BASE_EQ to EQ in a place where they’re equivalent because the only symbol allowed here is nil. --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index ee0b7e13508..745e62f53f7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3619,7 +3619,7 @@ buffer. */) o_end = OVERLAY_END (overlay); } - if (! EQ (buffer, obuffer)) + if (! BASE_EQ (buffer, obuffer)) { if (! NILP (obuffer)) remove_buffer_overlay (XBUFFER (obuffer), XOVERLAY (overlay)); -- 2.39.2