[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 99/156: configure: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 99/156: configure: fixed compiler warnings |
Date: |
Sun, 28 May 2023 17:52:32 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 97266a36c6fb4a3f81bd1c6eed396ed61dd22a31
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 16 11:40:41 2023 +0300
configure: fixed compiler warnings
---
configure.ac | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index ce7f30d7..50209800 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2263,9 +2263,11 @@ MHD_CHECK_FUNC([magic_open],
char var_data[256];
const char *var_mime;
magic_t var_magic = magic_open (MAGIC_MIME_TYPE);
- (void)magic_load (var_magic, NULL);
+ (void)magic_load (var_magic, "filename");
var_data[0] = 0;
var_mime = magic_buffer (var_magic, var_data, 1);
+ i][f (! var_mime)
+ return 1;
magic_close (var_magic);
]],
[AC_DEFINE([MHD_HAVE_LIBMAGIC], [1], [Define to 1 if you have suitable
libmagic.])],
@@ -3133,6 +3135,12 @@ AC_LINK_IFELSE(
[
AC_LANG_PROGRAM(
[[
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include <sys/wait.h>
]], [[
pid_t p = fork ();
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 73/156: Disabled badly broken TLS tests, (continued)
- [libmicrohttpd] 73/156: Disabled badly broken TLS tests, gnunet, 2023/05/28
- [libmicrohttpd] 84/156: autoinit_funcs.h: improved formatting, gnunet, 2023/05/28
- [libmicrohttpd] 85/156: Fixed many macros, gnunet, 2023/05/28
- [libmicrohttpd] 79/156: Updated libtool fixes, gnunet, 2023/05/28
- [libmicrohttpd] 90/156: autoinit_funcs.h: unified English spelling (prefer GB over US), gnunet, 2023/05/28
- [libmicrohttpd] 94/156: test_postform: updated to support the new libcurl API, gnunet, 2023/05/28
- [libmicrohttpd] 96/156: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 70/156: Upgraded TLS: fixed inefficient communication, gnunet, 2023/05/28
- [libmicrohttpd] 74/156: connection.c: fixed processing of folded headers, gnunet, 2023/05/28
- [libmicrohttpd] 81/156: contrib/make-dist.sh: added new helper script, gnunet, 2023/05/28
- [libmicrohttpd] 99/156: configure: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 106/156: test_postprocessor_md: fixed build in C89 mode, gnunet, 2023/05/28
- [libmicrohttpd] 117/156: examples/sessions.c: improved safety, gnunet, 2023/05/28
- [libmicrohttpd] 82/156: Updated POTFILES.in, gnunet, 2023/05/28
- [libmicrohttpd] 76/156: Added test with folded header placed last, gnunet, 2023/05/28
- [libmicrohttpd] 107/156: test_client_put_stop: fixed test on Darwin, gnunet, 2023/05/28
- [libmicrohttpd] 103/156: configure: renamed macro, gnunet, 2023/05/28
- [libmicrohttpd] 112/156: Added specific headers detection and include, gnunet, 2023/05/28
- [libmicrohttpd] 69/156: microhttpd.h: fixed typo in doxy, gnunet, 2023/05/28
- [libmicrohttpd] 66/156: configure: improved compatibility with POSIX, gnunet, 2023/05/28
- [libmicrohttpd] 67/156: configure: cosmetics: deleted extra spaces, gnunet, 2023/05/28