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~

Reply via email to