emacs-diffs
[Top][All Lists]
Advanced

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

master a359a9dfd4: Fix the no toolkit build


From: Po Lu
Subject: master a359a9dfd4: Fix the no toolkit build
Date: Mon, 14 Mar 2022 09:49:22 -0400 (EDT)

branch: master
commit a359a9dfd4439f2d8bf8c2fe1b9862ab00d69b6c
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix the no toolkit build
    
    * Activate.c (XMenuActivate): Stop relying on fallthroughs
    inside switch statement.  (bug#54382)
---
 oldXMenu/Activate.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c
index e679c2ffed..410782e60a 100644
--- a/oldXMenu/Activate.c
+++ b/oldXMenu/Activate.c
@@ -615,8 +615,8 @@ XMenuActivate(
                                                   event.xbutton.window
                                                   );
                if (event_xmp != NULL) continue;
-               FALLTHROUGH;
-           default:
+
+       queue:
                /*
                 * This is a foreign event.
                 * Queue it for later return to the X event queue.
@@ -629,6 +629,9 @@ XMenuActivate(
                feq_tmp->event = event;
                feq_tmp->next = feq;
                feq = feq_tmp;
+               break;
+           default:
+               goto queue;
            }
     }
     /*



reply via email to

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