]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the no toolkit build
authorPo Lu <luangruo@yahoo.com>
Mon, 14 Mar 2022 13:48:47 +0000 (21:48 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 14 Mar 2022 13:49:12 +0000 (21:49 +0800)
* Activate.c (XMenuActivate): Stop relying on fallthroughs
inside switch statement.  (bug#54382)

oldXMenu/Activate.c

index e679c2ffed653847e0bb13fdb3a1d99843a6d161..410782e60a93a9f59d20803408120be37fcf0508 100644 (file)
@@ -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;
            }
     }
     /*