Cygwin: cygserver: build with -Wimplicit-fallthrough=5

Define the pseudo keyword 'fallthrough' in woutsup.h to support this.
This commit is contained in:
Ken Brown
2020-08-07 09:48:28 -04:00
parent 1be41b802a
commit 225d376b70
4 changed files with 5 additions and 3 deletions

View File

@ -326,7 +326,7 @@ _msleep (void *ident, struct mtx *mtx, int priority,
break;
case WAIT_OBJECT_0 + 1: /* Shutdown event (triggered by wakeup_all). */
priority |= PDROP;
/*FALLTHRU*/
fallthrough;
case WAIT_OBJECT_0 + 2: /* The dependent process has exited. */
debug ("msleep process exit or shutdown for %d", td->td_proc->winpid);
ret = EIDRM;