GNU bug report logs - #78903
[PATCH] ISO C99 does not support _Noreturn

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Thu, 26 Jun 2025 07:22:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Helmut Eller <eller.helmut <at> gmail.com>, Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 78903 <at> debbugs.gnu.org
Subject: bug#78903: [PATCH] ISO C99 does not support _Noreturn
Date: Thu, 26 Jun 2025 10:51:39 +0300
> From: Helmut Eller <eller.helmut <at> gmail.com>
> Date: Thu, 26 Jun 2025 09:20:51 +0200
> 
> When I use gcc 14 with -std=gnu99 -Wpedantic I get lots of warnings of
> the form
> 
>  warning: ISO C99 does not support ‘_Noreturn’ [-Wpedantic].

Why did you use -Wpedantic?  The Emacs build doesn't use that, and for
a good reason.

> To avoid those warnings, I propose to use __attribute__ ((__noreturn__))
> instead.

We have already a portable solution for _Noreturn, see src/config.in.
We could modify it if needed, but I'm not sure we should try straying
too far from what we have (which works), definitely not for the
benefit of "-Wpedantic".

Paul, WDYT?




This bug report was last modified 15 days ago.

Previous Next


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