libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 100cf4ae10eccfd691a706987a80e3ab97f6ed42
parent 275d6fed80cc0bbc55dc0de05a970a38e510e334
Author: silvioprog <silvioprog@gmail.com>
Date:   Fri, 10 Apr 2020 11:05:12 -0300

Fixed compiler warnings.

Diffstat:
Msrc/microhttpd/mhd_send.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -50,6 +50,10 @@ pre_cork_setsockopt (struct MHD_Connection *connection, { #if HAVE_MSG_MORE /* We use the MSG_MORE option for corking, no need for extra syscalls! */ + + (void) connection; /* Mute compiler warning. */ + (void) want_cork; /* Mute compiler warning. */ + #elif defined(MHD_TCP_CORK_NOPUSH) int ret; @@ -135,6 +139,10 @@ post_cork_setsockopt (struct MHD_Connection *connection, { #if HAVE_MSG_MORE /* We use the MSG_MORE option for corking, no need for extra syscalls! */ + + (void) connection; /* Mute compiler warning. */ + (void) want_cork; /* Mute compiler warning. */ + #elif defined(MHD_TCP_CORK_NOPUSH) int ret;