]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: Fix warnings about narrowing conversions of NTSTATUS constants
authorJon Turney <jon.turney@dronecode.org.uk>
Sun, 4 Aug 2024 15:30:16 +0000 (16:30 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Tue, 6 Aug 2024 14:17:45 +0000 (15:17 +0100)
commit367b69a2803d4c0e4812b786f8f35865969f6636
tree28f05a90468a284baa04ffead42cf896a7801ecf
parenta0482c612cec8648620989fa54583bdcb0c0b3f5
Cygwin: Fix warnings about narrowing conversions of NTSTATUS constants

Fix warnings with gcc 12 about narrowing conversions of NTSTATUS
constants when used as case labels, e.g:

> ../../../../src/winsup/cygwin/exceptions.cc: In static member function ‘static int exception::handle(EXCEPTION_RECORD*, void*, CONTEXT*, PDISPATCHER_CONTEXT)’:
> ../../../../src/winsup/cygwin/exceptions.cc:670:10: error: narrowing conversion of ‘-1073741682’ from ‘NTSTATUS’ {aka ‘int’} to ‘unsigned int’ [-Wnarrowing]

See also: c5bdf60ac46401a51a7e974333d9622966e22d67

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
winsup/cygwin/exceptions.cc
winsup/cygwin/local_includes/ntdll.h
winsup/cygwin/pinfo.cc
winsup/cygwin/sigproc.cc
This page took 0.026462 seconds and 5 git commands to generate.