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.
feature/more-fds
Paul Eggert 2022-03-14 13:14:23 -07:00
parent 0d0703e9c4
commit 5c13c33e0c
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -37,6 +37,8 @@ without express or implied warranty.
#include <config.h>
#include <attribute.h>
/* Avoid warnings about redefining NULL by including <stdio.h> first;
the other file which wants to define it (<stddef.h> on Ultrix
systems) can deal if NULL is already defined, but <stdio.h> can't. */