commit 3a7126a3e25132dc01d238acb411fe7b77205929
parent b9972291435a373b7d92905f3ba153774e759b6b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Tue, 27 Sep 2022 17:26:19 +0300
Removed one debug member from release builds
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -1823,7 +1823,9 @@ setup_reply_properties (struct MHD_Connection *connection)
use_chunked = false; /* chunked encoding cannot be used without body */
c->rp.props.chunked = use_chunked;
+#ifdef _DEBUG
c->rp.props.set = true;
+#endif /* _DEBUG */
}
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
@@ -1080,7 +1080,9 @@ struct MHD_Request
*/
struct MHD_Reply_Properties
{
+#ifdef _DEBUG
bool set; /**< Indicates that other members are set and valid */
+#endif /* _DEBUG */
bool use_reply_body_headers; /**< Use reply body-specific headers */
bool send_reply_body; /**< Send reply body (can be zero-sized) */
bool chunked; /**< Use chunked encoding for reply */