From 1f6973241a57b24818126f513ec753772468c757 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 31 May 2022 01:19:32 -0700 Subject: [PATCH] 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. --- src/xfns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2