diff options
| author | Paul Eggert | 2022-03-14 13:14:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-03-14 13:14:54 -0700 |
| commit | 5c13c33e0c1b8b2ada18896e7a74b4d31007b09e (patch) | |
| tree | ba8eb2f934d20396e4ac5e39041990496b237256 /oldXMenu | |
| parent | 0d0703e9c4fb5ebcd4a87e5ebe78e5f53496621e (diff) | |
| download | emacs-5c13c33e0c1b8b2ada18896e7a74b4d31007b09e.tar.gz emacs-5c13c33e0c1b8b2ada18896e7a74b4d31007b09e.zip | |
Another fix for the no-toolkit build
This should be better in the long run.
* oldXMenu/Activate.c (XMenuActivate): Revert previous change,
eliminating the goto it introduced.
* oldXMenu/XMenuInt.h: Include <attribute.h>, for FALLTHROUGH.
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Activate.c | 7 | ||||
| -rw-r--r-- | oldXMenu/XMenuInt.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c index 410782e60a9..e679c2ffed6 100644 --- a/oldXMenu/Activate.c +++ b/oldXMenu/Activate.c | |||
| @@ -615,8 +615,8 @@ XMenuActivate( | |||
| 615 | event.xbutton.window | 615 | event.xbutton.window |
| 616 | ); | 616 | ); |
| 617 | if (event_xmp != NULL) continue; | 617 | if (event_xmp != NULL) continue; |
| 618 | 618 | FALLTHROUGH; | |
| 619 | queue: | 619 | default: |
| 620 | /* | 620 | /* |
| 621 | * This is a foreign event. | 621 | * This is a foreign event. |
| 622 | * Queue it for later return to the X event queue. | 622 | * Queue it for later return to the X event queue. |
| @@ -629,9 +629,6 @@ XMenuActivate( | |||
| 629 | feq_tmp->event = event; | 629 | feq_tmp->event = event; |
| 630 | feq_tmp->next = feq; | 630 | feq_tmp->next = feq; |
| 631 | feq = feq_tmp; | 631 | feq = feq_tmp; |
| 632 | break; | ||
| 633 | default: | ||
| 634 | goto queue; | ||
| 635 | } | 632 | } |
| 636 | } | 633 | } |
| 637 | /* | 634 | /* |
diff --git a/oldXMenu/XMenuInt.h b/oldXMenu/XMenuInt.h index 86b8e057cd5..5d5365ad8f2 100644 --- a/oldXMenu/XMenuInt.h +++ b/oldXMenu/XMenuInt.h | |||
| @@ -37,6 +37,8 @@ without express or implied warranty. | |||
| 37 | 37 | ||
| 38 | #include <config.h> | 38 | #include <config.h> |
| 39 | 39 | ||
| 40 | #include <attribute.h> | ||
| 41 | |||
| 40 | /* Avoid warnings about redefining NULL by including <stdio.h> first; | 42 | /* Avoid warnings about redefining NULL by including <stdio.h> first; |
| 41 | the other file which wants to define it (<stddef.h> on Ultrix | 43 | the other file which wants to define it (<stddef.h> on Ultrix |
| 42 | systems) can deal if NULL is already defined, but <stdio.h> can't. */ | 44 | systems) can deal if NULL is already defined, but <stdio.h> can't. */ |