From e783af1fc362bee0a75ddf35ba87be19b41a4e29 Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 10 Jun 2016 19:39:19 +0200 Subject: [PATCH] Add #ifdef to remove function not used if NO_CACHING is not set --- src/civetweb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/civetweb.c b/src/civetweb.c index 35915dd5..7414cc21 100644 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -6755,6 +6755,7 @@ handle_static_file_request(struct mg_connection *conn, } +#if !defined(NO_CACHING) static void handle_not_modified_static_file_request(struct mg_connection *conn, struct file *filep) @@ -6786,6 +6787,7 @@ handle_not_modified_static_file_request(struct mg_connection *conn, etag, suggest_connection_header(conn)); } +#endif void