From: Paul Eggert Date: Tue, 31 May 2022 08:19:32 +0000 (-0700) Subject: Pacify GCC 12 in Fmove_overlay X-Git-Tag: emacs-29.0.90~1910^2~319^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c4da5db04ba611b9a646c325e0e6eee165834f7a;p=emacs.git Pacify GCC 12 in Fmove_overlay * src/buffer.c (Fmove_overlay): Use BASE_EQ, not EQ. This pacifies GCC 12 -Wanalyzer-null-dereference. --- diff --git a/src/buffer.c b/src/buffer.c index 548d7b1c65c..d2b2f255756 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4107,7 +4107,7 @@ buffer. */) n_end = marker_position (OVERLAY_END (overlay)); /* If the overlay has changed buffers, do a thorough redisplay. */ - if (!EQ (buffer, obuffer)) + if (!BASE_EQ (buffer, obuffer)) { /* Redisplay where the overlay was. */ if (ob)