diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 23:22:50 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 23:22:50 +0300 |
commit | 72576ec2655d2af5ce148f6a48e8255fd69d6945 (patch) | |
tree | 7c7a30c1c5b44ad0b5b6deb680e37a3cc4b5401e | |
parent | 00eb9247fed79a71a6fbf4d34fffda23b064325b (diff) | |
download | libmicrohttpd-72576ec2655d2af5ce148f6a48e8255fd69d6945.tar.gz libmicrohttpd-72576ec2655d2af5ce148f6a48e8255fd69d6945.zip |
Muted additional compiler warnings
-rw-r--r-- | src/microhttpd/connection.c | 4 | ||||
-rw-r--r-- | src/microhttpd/daemon.c | 8 |
2 files changed, 11 insertions, 1 deletions
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, | |||
1036 | if (NULL != emsg) | 1036 | if (NULL != emsg) |
1037 | MHD_DLOG (connection->daemon, | 1037 | MHD_DLOG (connection->daemon, |
1038 | emsg); | 1038 | emsg); |
1039 | #endif | 1039 | #else /* ! HAVE_MESSAGES */ |
1040 | (void)emsg; /* Mute compiler warning. */ | ||
1041 | #endif /* ! HAVE_MESSAGES */ | ||
1040 | MHD_connection_close_ (connection, | 1042 | MHD_connection_close_ (connection, |
1041 | MHD_REQUEST_TERMINATED_WITH_ERROR); | 1043 | MHD_REQUEST_TERMINATED_WITH_ERROR); |
1042 | } | 1044 | } |
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, | |||
137 | file, | 137 | file, |
138 | line, | 138 | line, |
139 | reason); | 139 | reason); |
140 | #else /* ! HAVE_MESSAGES */ | ||
141 | (void)file; /* Mute compiler warning. */ | ||
142 | (void)line; /* Mute compiler warning. */ | ||
143 | (void)reason; /* Mute compiler warning. */ | ||
140 | #endif | 144 | #endif |
141 | abort (); | 145 | abort (); |
142 | } | 146 | } |
@@ -5071,6 +5075,10 @@ setup_epoll_fd (struct MHD_Daemon *daemon) | |||
5071 | { | 5075 | { |
5072 | int fd; | 5076 | int fd; |
5073 | 5077 | ||
5078 | #ifndef HAVE_MESSAGES | ||
5079 | (void)daemon; /* Mute compiler warning. */ | ||
5080 | #endif /* ! HAVE_MESSAGES */ | ||
5081 | |||
5074 | #ifdef USE_EPOLL_CREATE1 | 5082 | #ifdef USE_EPOLL_CREATE1 |
5075 | fd = epoll_create1 (EPOLL_CLOEXEC); | 5083 | fd = epoll_create1 (EPOLL_CLOEXEC); |
5076 | #else /* ! USE_EPOLL_CREATE1 */ | 5084 | #else /* ! USE_EPOLL_CREATE1 */ |