From: Paul Eggert Date: Sat, 25 Apr 2026 16:40:41 +0000 (-0700) Subject: thread: pacify gcc -Wsuggest-attribute=noreturn X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1e3c72197d82008f779ccbe1dcdb70f4064c1b;p=thirdparty%2Fgnulib.git thread: pacify gcc -Wsuggest-attribute=noreturn * lib/glthread/thread.c (gl_thread_create): When threading is disabled, this function is _Noreturn. --- diff --git a/ChangeLog b/ChangeLog index 01b67ea0ae..79543f03c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2026-04-25 Paul Eggert + + thread: pacify gcc -Wsuggest-attribute=noreturn + * lib/glthread/thread.c (gl_thread_create): + When threading is disabled, this function is _Noreturn. + 2026-04-25 Bruno Haible regex: Remove misplaced comment. diff --git a/lib/glthread/thread.c b/lib/glthread/thread.c index 8182c7fda8..f08a28c0da 100644 --- a/lib/glthread/thread.c +++ b/lib/glthread/thread.c @@ -204,6 +204,10 @@ const gl_thread_t gl_null_thread /* = { .p = NULL } */; /* ========================================================================= */ +#if !(USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS \ + || USE_WINDOWS_THREADS) +_Noreturn +#endif gl_thread_t gl_thread_create (void *(*func) (void *arg), void *arg) {