From 5549286d39f0a340579baf04aebb671b5ed1f998 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Mon, 17 Aug 2015 00:15:25 +0300 Subject: [PATCH] Mark unused variables to avoid compiler warnings/errors This avoids the compiler complaning when warnings for unused variables are enabled. --- ngx_http_fancyindex_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index aa5ae2e..679e637 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -1324,6 +1324,8 @@ ngx_http_fancyindex_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) ngx_http_fancyindex_loc_conf_t *prev = parent; ngx_http_fancyindex_loc_conf_t *conf = child; + (void) cf; /* unused */ + ngx_conf_merge_value(conf->enable, prev->enable, 0); ngx_conf_merge_uint_value(conf->default_sort, prev->default_sort, NGX_HTTP_FANCYINDEX_SORT_CRITERION_NAME); ngx_conf_merge_value(conf->localtime, prev->localtime, 0); @@ -1347,6 +1349,8 @@ ngx_http_fancyindex_ignore(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_http_fancyindex_loc_conf_t *alcf = conf; ngx_str_t *value; + (void) cmd; /* unused */ + #if (NGX_PCRE) ngx_uint_t i; ngx_regex_elt_t *re;