gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 205/335: configure: supported C23 'noreturn' keyword


From: gnunet
Subject: [libmicrohttpd] 205/335: configure: supported C23 'noreturn' keyword
Date: Sat, 27 Jul 2024 22:01:41 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit ec244662ad53f93f366e774e012a930aed65376a
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun May 26 17:55:33 2024 +0200

    configure: supported C23 'noreturn' keyword
---
 configure.ac | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index c7acffaf..012600ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2582,7 +2582,9 @@ AC_CACHE_CHECK([for supported 'noreturn' keyword], 
[mhd_cv_decl_noreturn],
   [
     mhd_cv_decl_noreturn="none"
     CFLAGS="${CFLAGS_ac} ${user_CFLAGS} ${errattr_CFLAGS}"
-    for decl_noret in '_Noreturn' '__attribute__((__noreturn__))' 
'__declspec(noreturn)'
+    MHD_SAVED_ac_c_werror_flag="$ac_c_werror_flag"
+    ac_c_werror_flag=yes
+    for decl_noret in ['[[noreturn]]'] '_Noreturn' 
'__attribute__((__noreturn__))' '__declspec(noreturn)'
     do
       AC_LINK_IFELSE([AC_LANG_SOURCE(
           [[
@@ -2611,7 +2613,9 @@ int main (int argc, char *const *argv)
       )
       AS_IF([test "x${mhd_cv_decl_noreturn}" != "xnone"], [break])
     done
-   CFLAGS="${CFLAGS_ac} ${user_CFLAGS}"
+    ac_c_werror_flag="$MHD_SAVED_ac_c_werror_flag"
+    AS_UNSET([MHD_SAVED_ac_c_werror_flag])
+    CFLAGS="${CFLAGS_ac} ${user_CFLAGS}"
   ]
 )
 AS_VAR_IF([mhd_cv_decl_noreturn], ["none"],

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]