[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.
- [libmicrohttpd] 211/335: configure: check for AF_UNIX headers, (continued)
- [libmicrohttpd] 211/335: configure: check for AF_UNIX headers, gnunet, 2024/07/27
- [libmicrohttpd] 200/335: configure: rewritten checks for inline and force inline keywords, gnunet, 2024/07/27
- [libmicrohttpd] 199/335: configure: added separate controls for MHD log and HTTP auto replies, gnunet, 2024/07/27
- [libmicrohttpd] 213/335: configure: check for socklen_t and substitute with a replacement if not available, gnunet, 2024/07/27
- [libmicrohttpd] 194/335: GENERATED: fixed macro names instead of enum values, gnunet, 2024/07/27
- [libmicrohttpd] 206/335: configure: renamed _MHD_NORETURN -> MHD_NORETURN_, gnunet, 2024/07/27
- [libmicrohttpd] 219/335: configure: improved testing for supported function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 218/335: configure: added checks for sokets-related symbols declarations, gnunet, 2024/07/27
- [libmicrohttpd] 222/335: this_API_is_TERRIBLE: even more, gnunet, 2024/07/27
- [libmicrohttpd] 189/335: GENERATED: use correct function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 205/335: configure: supported C23 'noreturn' keyword,
gnunet <=
- [libmicrohttpd] 215/335: configure: added support for 'restrict', gnunet, 2024/07/27
- [libmicrohttpd] 226/335: -fix typo, gnunet, 2024/07/27
- [libmicrohttpd] 223/335: Initial draft M2 (WIP), gnunet, 2024/07/27
- [libmicrohttpd] 216/335: configure: added tests for 'unreachable' supported keywords, gnunet, 2024/07/27
- [libmicrohttpd] 217/335: configure: added checks for socketpair(), gnunet, 2024/07/27
- [libmicrohttpd] 209/335: this_API_is_TERRIBLE.txt: updated, gnunet, 2024/07/27
- [libmicrohttpd] 230/335: w32_lib_res.rc.in: fixed, gnunet, 2024/07/27
- [libmicrohttpd] 229/335: Partial revert of 7237eb207b6dd215c5b726ed4b2a1e337cc4dbcc, gnunet, 2024/07/27
- [libmicrohttpd] 220/335: configure: added tests for supported enum attributes, gnunet, 2024/07/27
- [libmicrohttpd] 203/335: configure: check for more network/sockets headers, gnunet, 2024/07/27