Re: [PATCH] Fix windows-nat.c for -Wnarrowing

Tom Tromey
2018-08-29T19:34:07Z

>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

Eli> I don't understand: EXCEPTION_ACCESS_VIOLATION is defined like this:

Eli> #define STATUS_ACCESS_VIOLATION 0xC0000005
Eli> #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION

Eli> And you've removed DWORD from the definition of xlate. So where does
Eli> DWORD come from?

gcc -E reports:

static const struct xlate_exception xlate[] =
{
{
# 297 "../../binutils-gdb/gdb/windows-nat.c" 3 4
((DWORD)0xC0000005)
# 297 "../../binutils-gdb/gdb/windows-nat.c"

etc.

So somewhere in the Fedora mingw, I guess these are defined with
explicit DWORD casts.

Tom