[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/07: connection: muted compiler warning
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/07: connection: muted compiler warning |
Date: |
Wed, 01 Jun 2022 21:13:29 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 74c2eba238ff26788eae3afac68307f49a82099b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jun 1 09:51:08 2022 +0300
connection: muted compiler warning
---
src/microhttpd/connection.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d74535cf..8e780811 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -5329,14 +5329,22 @@ MHD_get_connection_info (struct MHD_Connection
*connection,
case MHD_CONNECTION_INFO_CIPHER_ALGO:
if (NULL == connection->tls_session)
return NULL;
- connection->connection_info_dummy.cipher_algorithm =
- (int) gnutls_cipher_get (connection->tls_session);
+ if (1)
+ { /* Workaround to mute compiler warning */
+ gnutls_cipher_algorithm_t res;
+ res = gnutls_cipher_get (connection->tls_session);
+ connection->connection_info_dummy.cipher_algorithm = (int) res;
+ }
return &connection->connection_info_dummy;
case MHD_CONNECTION_INFO_PROTOCOL:
if (NULL == connection->tls_session)
return NULL;
- connection->connection_info_dummy.protocol =
- (int) gnutls_protocol_get_version (connection->tls_session);
+ if (1)
+ { /* Workaround to mute compiler warning */
+ gnutls_protocol_t res;
+ res = gnutls_protocol_get_version (connection->tls_session);
+ connection->connection_info_dummy.protocol = (int) res;
+ }
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 (1b8c52f1 -> badf7560), gnunet, 2022/06/01
- [libmicrohttpd] 03/07: microhttpd.h: fixed doxy, gnunet, 2022/06/01
- [libmicrohttpd] 01/07: connection: muted compiler warning,
gnunet <=
- [libmicrohttpd] 04/07: src/examples/*fileserver*.c: added error checking, gnunet, 2022/06/01
- [libmicrohttpd] 07/07: http_chunked_compression: fixed errors, gnunet, 2022/06/01
- [libmicrohttpd] 06/07: src/examples/demo{,_https}: added some error checking, fixed compiler warnings, gnunet, 2022/06/01
- [libmicrohttpd] 05/07: src/examples/benchmark{,_https}: simplified time calculation, gnunet, 2022/06/01
- [libmicrohttpd] 02/07: src/examples: muted compiler warnings, gnunet, 2022/06/01