[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/10: connection.c: fixed compiler warnings
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/10: connection.c: fixed compiler warnings |
Date: |
Tue, 31 May 2022 19:38:10 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 3ab4375160fb18979fe67950f863313fa65a424f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue May 31 16:07:07 2022 +0300
connection.c: fixed compiler warnings
---
src/microhttpd/connection.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 9977ea6b..d74535cf 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2824,6 +2824,9 @@ parse_cookies_string_strict (char *str,
{
value_start = 0;
value_len = 0;
+#ifdef _DEBUG
+ val_quoted = false; /* This assignment used in assert */
+#endif
}
else
{
@@ -5327,13 +5330,13 @@ MHD_get_connection_info (struct MHD_Connection
*connection,
if (NULL == connection->tls_session)
return NULL;
connection->connection_info_dummy.cipher_algorithm =
- gnutls_cipher_get (connection->tls_session);
+ (int) gnutls_cipher_get (connection->tls_session);
return &connection->connection_info_dummy;
case MHD_CONNECTION_INFO_PROTOCOL:
if (NULL == connection->tls_session)
return NULL;
connection->connection_info_dummy.protocol =
- gnutls_protocol_get_version (connection->tls_session);
+ (int) gnutls_protocol_get_version (connection->tls_session);
return &connection->connection_info_dummy;
case MHD_CONNECTION_INFO_GNUTLS_SESSION:
if (NULL == connection->tls_session)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (afb8ed41 -> 1b8c52f1), gnunet, 2022/05/31
- [libmicrohttpd] 01/10: connection.c: fixed compiler warnings,
gnunet <=
- [libmicrohttpd] 02/10: MHD_FIND_ADD_CC_{C,LD}FLAG_IFELSE: added new autoconf macros, gnunet, 2022/05/31
- [libmicrohttpd] 04/10: MHD_get_timeout*(): improved doxy, gnunet, 2022/05/31
- [libmicrohttpd] 05/10: Fixed wrong variable type used for result of gnutls_priority_init(), gnunet, 2022/05/31
- [libmicrohttpd] 06/10: configure: disabled one more warning on clang, gnunet, 2022/05/31
- [libmicrohttpd] 07/10: mhd_sockets: muted compiler warning with very minor optimisation, gnunet, 2022/05/31
- [libmicrohttpd] 08/10: daemon.c: fixed possible uninitialized value, gnunet, 2022/05/31
- [libmicrohttpd] 03/10: configure: added more workarounds for clang, gnunet, 2022/05/31
- [libmicrohttpd] 09/10: Fixed 'int' instead of 'MHD_Result', gnunet, 2022/05/31
- [libmicrohttpd] 10/10: daemon: muted compiler warning, refactored code for readability, gnunet, 2022/05/31