Re: [PATCH 1/6] Cygwin: Suppress array-bounds warning from NtCurrentTeb()

2024-08-05 Thread Corinna Vinschen
On Aug 4 22:48, Jon Turney wrote: > This disables a warning seen with gcc 12 caused by intrinsics used by > the inline implementation of NtCurrentTeb() inside w32api headers. > > > In function ‘long long unsigned int __readgsqword(unsigned int)’, > > inlined from ‘_TEB* NtCurrentTeb()’ at >

Re: [PATCH 2/6] Cygwin: Fix warnings about narrowing conversions of NTSTATUS constants

2024-08-05 Thread Corinna Vinschen
On Aug 4 22:48, Jon Turney wrote: > 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*, > >

Re: [PATCH 3/6] Cygwin: Fix warning about address known to be non-NULL in /proc/locales

2024-08-05 Thread Corinna Vinschen
On Aug 4 22:48, Jon Turney wrote: > Fix a gcc 12 warning about an address known to be non-NULL in > format_proc_locale_proc(). > > > ../../../../src/winsup/cygwin/fhandler/proc.cc: In function ‘BOOL > > format_proc_locale_proc(LPWSTR, DWORD, LPARAM)’: > > ../../../../src/winsup/cygwin/fhandler/p

Re: [PATCH 4/6] Cygwin: Fix warning about narrowing conversions in tape options

2024-08-05 Thread Corinna Vinschen
On Aug 4 22:48, Jon Turney wrote: > Fix a gcc 12 warning about a narrowing conversion in case labels for > tape options. > > > In file included from /wip/cygwin/src/winsup/cygwin/include/sys/mtio.h:14, > > from ../../../../src/winsup/cygwin/fhandler/tape.cc:13: > > ../../../../sr

Re: [PATCH 5/6] Cygwin: Fix warnings about narrowing conversions of socket ioctls

2024-08-05 Thread Corinna Vinschen
On Aug 4 22:48, Jon Turney wrote: > Fix gcc 12 warnings about narrowing conversions of socket ioctl constants > when used as case labels, e.g: > > > ../../../../src/winsup/cygwin/net.cc: In function ‘int get_ifconf(ifconf*, > > int)’: > > ../../../../src/winsup/cygwin/net.cc:1940:18: error: narr