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 #44 received at 75964 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pip Cet <pipcet <at> protonmail.com>
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 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.




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.