emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 1f6973241a 07/11: Pacify GCC 12 in Fx_show_tip


From: Paul Eggert
Subject: master 1f6973241a 07/11: Pacify GCC 12 in Fx_show_tip
Date: Tue, 31 May 2022 04:26:59 -0400 (EDT)

branch: master
commit 1f6973241a57b24818126f513ec753772468c757
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    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 259034861a..d696078440 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]