GNU bug report logs - #75964
Switching the Emacs build to -Wswitch-enum in src/

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> protonmail.com>

Date: Fri, 31 Jan 2025 09:41:02 UTC

Severity: wishlist

Full log


Message #47 received at 75964 <at> debbugs.gnu.org (full text, mbox):

From: Pip Cet <pipcet <at> protonmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 75964 <at> debbugs.gnu.org, Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: Switching the Emacs build to -Wswitch-enum in src/
Date: Fri, 31 Jan 2025 18:41:43 +0000
"Paul Eggert" <eggert <at> cs.ucla.edu> 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 :-)





This bug report was last modified 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.