1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Set #ifdef for unused variable

This commit is contained in:
bel
2015-08-17 00:51:00 +02:00
parent 03e65fa601
commit 86cc4c9e4b
2 changed files with 4 additions and 2 deletions

View File

@@ -3844,11 +3844,13 @@ interpret_uri(struct mg_connection *conn, /* in: request */
const char *root = conn->ctx->config[DOCUMENT_ROOT];
const char *rewrite;
struct vec a, b;
char *p;
int match_len;
char gz_path[PATH_MAX];
char const *accept_encoding;
int truncated;
#if !defined(NO_CGI) || defined(USE_LUA)
char *p;
#endif
#else
(void)filename_buf_len; /* unused if NO_FILES is defined */
#endif

View File

@@ -1124,7 +1124,7 @@ Suite *make_public_server_suite(void)
suite_add_tcase(suite, startstophttp);
tcase_add_test(startstophttps, test_mg_start_stop_https_server);
tcase_set_timeout(startstophttps, 10);
tcase_set_timeout(startstophttps, 10);
suite_add_tcase(suite, startstophttps);
tcase_add_test(serverrequests, test_request_handlers);