[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 02/02: Muted additional compiler warnings
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 02/02: Muted additional compiler warnings |
Date: |
Sun, 26 Nov 2017 21:34:05 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 72576ec2655d2af5ce148f6a48e8255fd69d6945
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Nov 26 23:22:50 2017 +0300
Muted additional compiler warnings
---
src/microhttpd/connection.c | 4 +++-
src/microhttpd/daemon.c | 8 ++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index ef61fdb6..dd6e2733 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -1036,7 +1036,9 @@ connection_close_error (struct MHD_Connection *connection,
if (NULL != emsg)
MHD_DLOG (connection->daemon,
emsg);
-#endif
+#else /* ! HAVE_MESSAGES */
+ (void)emsg; /* Mute compiler warning. */
+#endif /* ! HAVE_MESSAGES */
MHD_connection_close_ (connection,
MHD_REQUEST_TERMINATED_WITH_ERROR);
}
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b1c7e88d..8005c01e 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -137,6 +137,10 @@ mhd_panic_std (void *cls,
file,
line,
reason);
+#else /* ! HAVE_MESSAGES */
+ (void)file; /* Mute compiler warning. */
+ (void)line; /* Mute compiler warning. */
+ (void)reason; /* Mute compiler warning. */
#endif
abort ();
}
@@ -5071,6 +5075,10 @@ setup_epoll_fd (struct MHD_Daemon *daemon)
{
int fd;
+#ifndef HAVE_MESSAGES
+ (void)daemon; /* Mute compiler warning. */
+#endif /* ! HAVE_MESSAGES */
+
#ifdef USE_EPOLL_CREATE1
fd = epoll_create1 (EPOLL_CLOEXEC);
#else /* ! USE_EPOLL_CREATE1 */
--
To stop receiving notification emails like this one, please contact
address@hidden