diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-02-12 11:17:35 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-02-12 12:08:40 -0600 |
commit | c5f03820fc4f8c9910f52ab2ef951a6e32ed3ff1 (patch) | |
tree | dd31c5c3cc62a46a50da6ca081c2ae8f3fbd72eb /winsup/cygwin/exceptions.cc | |
parent | ac2f9e23ecd197758e7cc2ca1b8717add3d8762b (diff) | |
download | cygnal-c5f03820fc4f8c9910f52ab2ef951a6e32ed3ff1.tar.gz cygnal-c5f03820fc4f8c9910f52ab2ef951a6e32ed3ff1.tar.bz2 cygnal-c5f03820fc4f8c9910f52ab2ef951a6e32ed3ff1.zip |
cygwin: fix errors with GCC 5
GCC 5 switched from C89 to C11 by default. This implies a change from
GNU to C99 inline by default, which have very different meanings of
extern inline vs. static inline:
https://gcc.gnu.org/onlinedocs/gcc/Inline.html
Marking these as gnu_inline retains the previous behaviour.
winsup/cygwin/
* exceptions.cc (exception::handle): Change debugging to int to fix
an always-true boolean comparison warning.
* include/cygwin/config.h (__getreent): Mark gnu_inline.
* winbase.h (ilockcmpexch, ilockcmpexch64): Ditto.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index c3a45d288..1627d435d 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -637,7 +637,7 @@ EXCEPTION_DISPOSITION exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, PDISPATCHER_CONTEXT dispatch) { - static bool NO_COPY debugging; + static int NO_COPY debugging = 0; _cygtls& me = _my_tls; #ifndef __x86_64__ @@ -808,7 +808,7 @@ exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in, rtl_unwind (frame, e); else { - debugging = true; + debugging = 1; return ExceptionContinueExecution; } |