gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/02: Muted some compiler warnings


From: gnunet
Subject: [libmicrohttpd] 02/02: Muted some compiler warnings
Date: Sun, 13 Dec 2020 19:28:02 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit c1115185b8c6f85bb51c6f0c20e8db69201a494b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 13 21:27:23 2020 +0300

    Muted some compiler warnings
---
 src/microhttpd/daemon.c     | 1 +
 src/microhttpd/digestauth.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 46cfad0e..5666e4ee 100644
--- 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
index 0c86c58e..3ab1ec13 100644
--- 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)
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]