commit e9fbb331585488199fb3ed049f48acda672dc6aa
parent 96a0da03fecf39a530928c0223d16ba517a80473
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 11 Aug 2021 22:33:20 +0300
connection.c: cosmetics
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -1389,7 +1389,9 @@ connection_shrink_read_buffer (struct MHD_Connection *connection)
new_buf = MHD_pool_reallocate (c->pool, c->read_buffer, c->read_buffer_size,
c->read_buffer_offset);
mhd_assert (c->read_buffer == new_buf);
+#ifdef NDEBUG
(void) new_buf; /* squash compiler warning */
+#endif /* NDEBUG */
c->read_buffer_size = c->read_buffer_offset;
if (0 == c->read_buffer_size)
c->read_buffer = NULL;