Pacify gcc -Wanalyzer-null-dereference

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.
This commit is contained in:
Paul Eggert 2022-11-04 11:00:49 -07:00
parent 5fa2f11679
commit 90a0aac3e8

View file

@ -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));