From f9b9050ab8c5539c97bd01291a48a2bbe650bae1 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 6 Nov 2025 15:00:08 +0100 Subject: [PATCH] - Fix configure test for noreturn attribute so it compiles without warning. --- configure.ac | 9 ++++++++- doc/Changelog | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 09293706b..541ac0bc4 100644 --- a/configure.ac +++ b/configure.ac @@ -361,7 +361,14 @@ AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "noreturn" attribu AC_CACHE_VAL(ac_cv_c_noreturn_attribute, [ac_cv_c_noreturn_attribute=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include -__attribute__((noreturn)) void f(int x) { printf("%d", x); } +#ifdef STDC_HEADERS +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +__attribute__((noreturn)) void f(int x) { printf("%d", x); exit(1); } ]], [[ f(1); ]])],[ac_cv_c_noreturn_attribute="yes"],[ac_cv_c_noreturn_attribute="no"]) diff --git a/doc/Changelog b/doc/Changelog index dfbd5ea99..f12753096 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,7 @@ 6 November 2025: Wouter - Fix add comment to worker_handle_request function that explain it. + - Fix configure test for noreturn attribute so it compiles without + warning. 4 November 2025: Wouter - Fix dns64 log output to log the default instead of a null string. -- 2.47.3