|
From: | Richard Henderson |
Subject: | Re: [PATCH v2 5/5] bulk: Replace __attribute__((noreturn)) -> G_NORETURN |
Date: | Mon, 5 Jun 2023 12:30:46 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 6/5/23 10:56, Philippe Mathieu-Daudé wrote:
-static __attribute__((noreturn)) void exit_failure(void) +static G_NORETURN void exit_failure(void)
I think attr-spec-seq ('[[noreturn]]') has to come before specifiers-and-qualifiers (i.e. 'static').
To me this means that G_NORETURN being redefined from __attribute__((noreturn)) to [[noreturn]] was a glib bug, since it has a different syntax.
Therefore we should simply avoid G_NORETURN entirely. At some point we should be able to update -to --std=c23, at which point we use [[noreturn]] directly and not G_NORETURN anyway.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |