commit 621215675e5eec4140cab62c86e1d379f7fda7bf
parent 090ee9e6041904bb864b3ec18e80a861b326931b
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 23 Mar 2018 22:52:33 +0100
fix c90 warning
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -495,13 +495,14 @@ static int
socket_start_extra_buffering (struct MHD_Connection *connection)
{
int res = MHD_NO;
- (void)connection; /* Mute compiler warning. */
#if defined(TCP_CORK) || defined(TCP_NOPUSH)
const MHD_SCKT_OPT_BOOL_ on_val = 1;
#if defined(TCP_NODELAY)
const MHD_SCKT_OPT_BOOL_ off_val = 0;
#endif /* TCP_NODELAY */
- mhd_assert(NULL != connection);
+ (void) connection; /* mute compiler warning, assertion below
+ may be compiled out! */
+ mhd_assert(NULL != connection);
#if defined(TCP_NOPUSH) && !defined(TCP_CORK)
/* Buffer data before sending */
res = (0 == setsockopt (connection->socket_fd,