diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-23 22:52:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-23 22:52:33 +0100 |
commit | 621215675e5eec4140cab62c86e1d379f7fda7bf (patch) | |
tree | 11cfd2e25ad3b21b2c88ffac2194c0d9301e02a5 | |
parent | 090ee9e6041904bb864b3ec18e80a861b326931b (diff) | |
download | libmicrohttpd-621215675e5eec4140cab62c86e1d379f7fda7bf.tar.gz libmicrohttpd-621215675e5eec4140cab62c86e1d379f7fda7bf.zip |
fix c90 warning
-rw-r--r-- | src/microhttpd/connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 8c61a8ba..593a5b44 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -495,13 +495,14 @@ static int | |||
495 | socket_start_extra_buffering (struct MHD_Connection *connection) | 495 | socket_start_extra_buffering (struct MHD_Connection *connection) |
496 | { | 496 | { |
497 | int res = MHD_NO; | 497 | int res = MHD_NO; |
498 | (void)connection; /* Mute compiler warning. */ | ||
499 | #if defined(TCP_CORK) || defined(TCP_NOPUSH) | 498 | #if defined(TCP_CORK) || defined(TCP_NOPUSH) |
500 | const MHD_SCKT_OPT_BOOL_ on_val = 1; | 499 | const MHD_SCKT_OPT_BOOL_ on_val = 1; |
501 | #if defined(TCP_NODELAY) | 500 | #if defined(TCP_NODELAY) |
502 | const MHD_SCKT_OPT_BOOL_ off_val = 0; | 501 | const MHD_SCKT_OPT_BOOL_ off_val = 0; |
503 | #endif /* TCP_NODELAY */ | 502 | #endif /* TCP_NODELAY */ |
504 | mhd_assert(NULL != connection); | 503 | (void) connection; /* mute compiler warning, assertion below |
504 | may be compiled out! */ | ||
505 | mhd_assert(NULL != connection); | ||
505 | #if defined(TCP_NOPUSH) && !defined(TCP_CORK) | 506 | #if defined(TCP_NOPUSH) && !defined(TCP_CORK) |
506 | /* Buffer data before sending */ | 507 | /* Buffer data before sending */ |
507 | res = (0 == setsockopt (connection->socket_fd, | 508 | res = (0 == setsockopt (connection->socket_fd, |