From: Paul Eggert Date: Tue, 31 May 2022 08:19:32 +0000 (-0700) Subject: Pacify GCC 12 in Fx_show_tip X-Git-Tag: emacs-29.0.90~1910^2~319^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f6973241a57b24818126f513ec753772468c757;p=emacs.git Pacify GCC 12 in Fx_show_tip * src/xfns.c (Fx_show_tip): Use BASE_EQ, not EQ. This pacifies GCC 12 -Wanalyzer-null-dereference. --- diff --git a/src/xfns.c b/src/xfns.c index 259034861ab..d696078440a 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -8487,7 +8487,7 @@ Text larger than the specified size is clipped. */) if (!NILP (tip_frame) && FRAME_LIVE_P (XFRAME (tip_frame))) { if (FRAME_VISIBLE_P (XFRAME (tip_frame)) - && EQ (frame, tip_last_frame) + && BASE_EQ (frame, tip_last_frame) && !NILP (Fequal_including_properties (tip_last_string, string)) && !NILP (Fequal (tip_last_parms, parms))) { @@ -8508,7 +8508,7 @@ Text larger than the specified size is clipped. */) goto start_timer; } - else if (tooltip_reuse_hidden_frame && EQ (frame, tip_last_frame)) + else if (tooltip_reuse_hidden_frame && BASE_EQ (frame, tip_last_frame)) { bool delete = false; Lisp_Object tail, elt, parm, last;