commit 72576ec2655d2af5ce148f6a48e8255fd69d6945
parent 00eb9247fed79a71a6fbf4d34fffda23b064325b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 26 Nov 2017 23:22:50 +0300
Muted additional compiler warnings
Diffstat:
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git 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
@@ -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 */