[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: connection.c: muted compiler warn
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: connection.c: muted compiler warning for builds without messages |
Date: |
Sat, 24 Apr 2021 17:18:20 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new eb76464c connection.c: muted compiler warning for builds without
messages
eb76464c is described below
commit eb76464cdf0164ae68c53c6b017d261a715a93c5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Apr 24 18:06:08 2021 +0300
connection.c: muted compiler warning for builds without messages
---
src/microhttpd/connection.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 916e75c8..08b76eb6 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -125,6 +125,7 @@
*/
#define MHD_SENFILE_CHUNK_THR_P_C_ (0x200000)
+#ifdef HAVE_MESSAGES
/**
* Return text description for MHD_ERR_*_ codes
* @param mhd_err_code the error code
@@ -133,7 +134,6 @@
static const char *
str_conn_error_ (ssize_t mhd_err_code)
{
-#ifdef HAVE_MESSAGES
switch (mhd_err_code)
{
case MHD_ERR_AGAIN_:
@@ -162,12 +162,11 @@ str_conn_error_ (ssize_t mhd_err_code)
mhd_assert (0); /* Should never be reachable */
return _ ("Wrong error code value");
-#else /* ! HAVE_MESSAGES */
- return "";
-#endif /* ! HAVE_MESSAGES */
}
+#endif /* HAVE_MESSAGES */
+
/**
* Callback for receiving data from the socket.
*
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: connection.c: muted compiler warning for builds without messages,
gnunet <=