Permalink
Browse files

fixed compilation issues with gcc 4.6.0.

  • Loading branch information...
agentzh committed Nov 7, 2011
1 parent 2fc79cb commit 162a45b582c5e0f9397636b4c4a3dd5e76afb8ef
Showing with 2 additions and 6 deletions.
  1. +2 −6 ngx_http_eval_module.c
View
@@ -648,7 +648,7 @@ ngx_http_eval_add_variables(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
static char *
ngx_http_eval_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{
- ngx_http_eval_loc_conf_t *ecf, *pecf = conf;
+ ngx_http_eval_loc_conf_t *pecf = conf;
char *rv;
void *mconf;
@@ -657,7 +657,7 @@ ngx_http_eval_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_conf_t save;
ngx_http_module_t *module;
ngx_http_conf_ctx_t *ctx, *pctx;
- ngx_http_core_loc_conf_t *clcf, *pclcf, *rclcf;
+ ngx_http_core_loc_conf_t *clcf, *rclcf;
ngx_http_core_srv_conf_t *cscf;
#if defined(nginx_version) && nginx_version >= 8042 && nginx_version <= 8053
@@ -700,10 +700,6 @@ ngx_http_eval_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
}
}
- ecf = ctx->loc_conf[ngx_http_eval_module.ctx_index];
-
- pclcf = pctx->loc_conf[ngx_http_core_module.ctx_index];
-
clcf = ctx->loc_conf[ngx_http_core_module.ctx_index];
name.len = sizeof("/eval_") - 1 + NGX_OFF_T_LEN;

0 comments on commit 162a45b

Please sign in to comment.