GNU bug report logs - #75451
scratch/igc: Enable CHECK_STRUCTS

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Thu, 9 Jan 2025 03:58:02 UTC

Severity: wishlist

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Pip Cet <pipcet <at> protonmail.com>
Cc: Gerd Moellmann <gerd <at> gnu.org>, Paul Eggert <eggert <at> cs.ucla.edu>,
 Stefan Kangas <stefankangas <at> gmail.com>, 75451 <at> debbugs.gnu.org
Subject: Re: bug#75451: scratch/igc: Enable CHECK_STRUCTS
Date: Mon, 20 Jan 2025 10:17:29 +0100
Pip Cet <pipcet <at> protonmail.com> writes:

> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
>
>> Pip Cet <pipcet <at> protonmail.com> writes:
>>
>>>> Thanks, that's helpful.  Based on the above, I came up with the attached
>>>> patch for pdumper.c.
>>>
>>> Let's introduce macros for the different cases, and use the same macro
>>> in the same case, until GCC offers a fix.
>>
>> Pretty please not more macros.
>
> Why not?  We need to distinguish "default case reached for some enum
> values" and "default case reached only for non-enum values, warn if it's
> reached for enum values"###

Emacs already has too many macros for may taste. I'd rather loose a
warning or optimization than complicate things further. Just my 2 cents.




This bug report was last modified 106 days ago.

Previous Next


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