4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-10 11:09:25 +08:00
Jon Turney a0482c612c
Cygwin: Suppress array-bounds warning from NtCurrentTeb()
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 /usr/include/w32api/winnt.h:10020:86,
> [...]
> /usr/include/w32api/psdk_inc/intrin-impl.h:838:1: error: array subscript 0 is outside array bounds of ‘long long unsigned int [0]’ [-Werror=array-bounds]

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523#c6

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
2024-08-06 15:17:44 +01:00
..
2022-08-22 14:53:30 +02:00
2024-03-19 23:21:35 +01:00
2022-08-19 15:51:49 +02:00
2022-10-28 16:26:53 +02:00