Subject: Re: Switching the Emacs build to -Wswitch-enum in src/

From: Paul Eggert <[email-masked]>
Date: Fri, 31 Jan 2025 10:30:57 -0800

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.