commit c1115185b8c6f85bb51c6f0c20e8db69201a494b
parent ef091c941a27c3b0b89fa658b797e5618ed6e1d8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 13 Dec 2020 21:27:23 +0300
Muted some compiler warnings
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -2959,6 +2959,7 @@ new_connections_list_process_ (struct MHD_Daemon *daemon)
daemon->new_connections_tail = NULL;
daemon->have_new = false;
MHD_mutex_unlock_chk_ (&daemon->new_connections_mutex);
+ (void) local_head; /* Mute compiler warning */
/* Process new connections in FIFO order. */
do
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
@@ -31,6 +31,7 @@
#include "mhd_mono_clock.h"
#include "mhd_str.h"
#include "mhd_compat.h"
+#include "mhd_assert.h"
#if defined(MHD_W32_MUTEX_)
#ifndef WIN32_LEAN_AND_MEAN
@@ -1214,6 +1215,9 @@ MHD_digest_auth_check (struct MHD_Connection *connection,
da.update = &MHD_SHA256_update; \
da.digest = &sha256_finish; \
break; \
+ default: \
+ mhd_assert (false); \
+ break; \
} \
} while (0)