From 85fbc378e3a29a3340637a8bc3b8adf6d3a87ace Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Fri, 11 Nov 2011 17:37:26 +0000 Subject: [PATCH] Merge r1200975 from trunk: C99 and unused variable warnings Submitted by: covener Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1200982 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index 3450d27205..0ac434752e 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -85,6 +85,7 @@ static int lua_open_hook(lua_State *L, apr_pool_t *p) static int lua_handler(request_rec *r) { ap_lua_dir_cfg *dcfg; + apr_pool_t *pool; if (strcmp(r->handler, "lua-script")) { return DECLINED; } @@ -97,9 +98,6 @@ static int lua_handler(request_rec *r) lua_State *L; const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config, &lua_module); - ap_lua_request_cfg *rcfg = ap_get_module_config(r->request_config, - &lua_module); - ap_lua_vm_spec *spec = NULL; spec = apr_pcalloc(r->pool, sizeof(ap_lua_vm_spec)); @@ -117,7 +115,6 @@ static int lua_handler(request_rec *r) spec->file, "handle"); - apr_pool_t *pool; switch (dcfg->vm_scope) { case AP_LUA_SCOPE_ONCE: apr_pool_create(&pool, r->pool); -- 2.40.0