[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/06: configure: supported C23 'noreturn' keyword
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/06: configure: supported C23 'noreturn' keyword |
Date: |
Fri, 14 Jun 2024 21:20:08 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 03abafc46bfcdc92e4c20ad6e4613212a335f626
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 ca333122..58664718 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2399,7 +2399,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(
[[
@@ -2428,7 +2430,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.
- [libmicrohttpd] branch master updated (7472d893 -> 7f28cb41), gnunet, 2024/06/14
- [libmicrohttpd] 02/06: configure: rewritten checks for inline and force inline keywords, gnunet, 2024/06/14
- [libmicrohttpd] 05/06: W32 resources: reworked, added support for the static lib resources, gnunet, 2024/06/14
- [libmicrohttpd] 06/06: Remove tags from .gitlab-ci.yml, gnunet, 2024/06/14
- [libmicrohttpd] 04/06: configure: supported C23 'noreturn' keyword,
gnunet <=
- [libmicrohttpd] 03/06: configure: improved checks for function name magic-macros, gnunet, 2024/06/14
- [libmicrohttpd] 01/06: configure: fixed configuration summary, gnunet, 2024/06/14