Subject: bug#75964: Switching the Emacs build to -Wswitch-enum in src/

From: Pip Cet <[email-masked]>
Date: Fri, 31 Jan 2025 18:41:43 +0000

"Paul Eggert" <[email-masked]> writes:

> On 2025-01-31 03:05, Pip Cet wrote:
>> Unfortunately, GCC now thinks:
>>
>>    static const char hexchar[16] = "0123456789ABCDEF";
>>
>> is unsafe and the [16] should be [17] or omitted.
>
> This is GCC bug 117178
> <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178>, which also bites
> in several places in the Linux kernel. In the meantime I wouldn't worry
> about it, other than perhaps suppressing the false positive with current
> GCC.

Thanks! Easy enough to work around that for now, and there are many
other new warnings, it seems :-)