瀏覽代碼

Add #ifdef to remove function not used if NO_CACHING is not set

bel 9 年之前
父節點
當前提交
e783af1fc3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/civetweb.c

+ 2 - 0
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