mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-12 20:19:14 +08:00
Cygwin: utils: build with -Wimplicit-fallthrough=4 -Werror
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
4257d39dce
commit
c28acd565c
@ -14,9 +14,11 @@ configure_args=@configure_args@
|
|||||||
export CC:=@CC@
|
export CC:=@CC@
|
||||||
export CXX:=@CXX@
|
export CXX:=@CXX@
|
||||||
|
|
||||||
|
CFLAGS_COMMON=-Wimplicit-fallthrough=4 -Werror
|
||||||
CFLAGS:=@CFLAGS@
|
CFLAGS:=@CFLAGS@
|
||||||
CXXFLAGS:=@CXXFLAGS@
|
CXXFLAGS:=@CXXFLAGS@
|
||||||
override CXXFLAGS+=-fno-exceptions -fno-rtti
|
override CFLAGS+=${CFLAGS_COMMON}
|
||||||
|
override CXXFLAGS+=-fno-exceptions -fno-rtti ${CFLAGS_COMMON}
|
||||||
|
|
||||||
include ${srcdir}/../Makefile.common
|
include ${srcdir}/../Makefile.common
|
||||||
|
|
||||||
|
@ -465,7 +465,7 @@ run_program (char *cmdline)
|
|||||||
thread_return_address[tix] = rv;
|
thread_return_address[tix] = rv;
|
||||||
}
|
}
|
||||||
set_step_threads (event.dwThreadId, stepping_enabled);
|
set_step_threads (event.dwThreadId, stepping_enabled);
|
||||||
/* fall-through */
|
/*FALLTHRU*/
|
||||||
case STATUS_SINGLE_STEP:
|
case STATUS_SINGLE_STEP:
|
||||||
opcode_count++;
|
opcode_count++;
|
||||||
pc = (CONTEXT_REG)event.u.Exception.ExceptionRecord.ExceptionAddress;
|
pc = (CONTEXT_REG)event.u.Exception.ExceptionRecord.ExceptionAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user