Mark unused variables to avoid compiler warnings/errors

This avoids the compiler complaning when warnings for unused variables are
enabled.
pull/28/head
Adrian Perez de Castro 2015-08-17 00:15:25 +03:00
parent 13170fb6e6
commit 5549286d39
1 changed files with 4 additions and 0 deletions

View File

@ -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;