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

Tom Tromey
2018-08-29T18:58:51Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> + {-1, GDB_SIGNAL_UNKNOWN}

Pedro> I guess that -1 would still cause a -Wnarrowing warning.
Pedro> If so, it'd be easily fixable by removing that terminator
Pedro> entry and using range-for in the other #if 0 block.
Pedro> Just thinking out loud. Please don't bother.

I didn't consider this, oops.
I rebuilt without the new #if and, yes, it failed.
So, I've added a DWORD cast there as well; then restore the #if.

I'm going to push this version.

thanks,
Tom