mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 19:40:33 +08:00
Cygwin: cygserver: build with -Wimplicit-fallthrough=5
Define the pseudo keyword 'fallthrough' in woutsup.h to support this.
This commit is contained in:
parent
1be41b802a
commit
225d376b70
@ -16,7 +16,7 @@ export CXX:=@CXX@
|
|||||||
|
|
||||||
CFLAGS:=@CFLAGS@
|
CFLAGS:=@CFLAGS@
|
||||||
override CXXFLAGS=@CXXFLAGS@
|
override CXXFLAGS=@CXXFLAGS@
|
||||||
override CXXFLAGS+=-MMD -Wimplicit-fallthrough=4 -Werror -D__OUTSIDE_CYGWIN__ -DSYSCONFDIR="\"$(sysconfdir)\""
|
override CXXFLAGS+=-MMD -Wimplicit-fallthrough=5 -Werror -D__OUTSIDE_CYGWIN__ -DSYSCONFDIR="\"$(sysconfdir)\""
|
||||||
|
|
||||||
include ${srcdir}/../Makefile.common
|
include ${srcdir}/../Makefile.common
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ ipcexit_hookthread (const LPVOID param)
|
|||||||
{
|
{
|
||||||
case WAIT_OBJECT_0:
|
case WAIT_OBJECT_0:
|
||||||
/* Cygserver shutdown. */
|
/* Cygserver shutdown. */
|
||||||
/*FALLTHRU*/
|
fallthrough;
|
||||||
case WAIT_OBJECT_0 + 1:
|
case WAIT_OBJECT_0 + 1:
|
||||||
/* Process exited. Call semexit_myhook to handle SEM_UNDOs for the
|
/* Process exited. Call semexit_myhook to handle SEM_UNDOs for the
|
||||||
exiting process and shmexit_myhook to keep track of shared
|
exiting process and shmexit_myhook to keep track of shared
|
||||||
|
@ -326,7 +326,7 @@ _msleep (void *ident, struct mtx *mtx, int priority,
|
|||||||
break;
|
break;
|
||||||
case WAIT_OBJECT_0 + 1: /* Shutdown event (triggered by wakeup_all). */
|
case WAIT_OBJECT_0 + 1: /* Shutdown event (triggered by wakeup_all). */
|
||||||
priority |= PDROP;
|
priority |= PDROP;
|
||||||
/*FALLTHRU*/
|
fallthrough;
|
||||||
case WAIT_OBJECT_0 + 2: /* The dependent process has exited. */
|
case WAIT_OBJECT_0 + 2: /* The dependent process has exited. */
|
||||||
debug ("msleep process exit or shutdown for %d", td->td_proc->winpid);
|
debug ("msleep process exit or shutdown for %d", td->td_proc->winpid);
|
||||||
ret = EIDRM;
|
ret = EIDRM;
|
||||||
|
@ -12,6 +12,8 @@ details. */
|
|||||||
#error "woutsup.h is not for code being compiled inside the dll"
|
#error "woutsup.h is not for code being compiled inside the dll"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define fallthrough __attribute__((__fallthrough__))
|
||||||
|
|
||||||
#ifndef _WIN32_WINNT
|
#ifndef _WIN32_WINNT
|
||||||
#define _WIN32_WINNT 0x0500
|
#define _WIN32_WINNT 0x0500
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user