From 51bd47fab67b95b23f6897b016f4806b2f1c73e2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 13 Feb 2022 13:48:34 +0200 Subject: [PATCH 32/32] ls_odbc.c: Fix "shadowed variable" -compiler warning See osdn #43850 Signed-off-by: Marko Lindqvist --- dependencies/luasql/src/ls_odbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies/luasql/src/ls_odbc.c b/dependencies/luasql/src/ls_odbc.c index 222370e262..5b314c2c81 100644 --- a/dependencies/luasql/src/ls_odbc.c +++ b/dependencies/luasql/src/ls_odbc.c @@ -1111,9 +1111,9 @@ static int env_close (lua_State *L) env->closed = 1; ret = SQLFreeHandle (hENV, env->henv); if (error(ret)) { - int ret = fail(L, hENV, env->henv); + int ret2 = fail(L, hENV, env->henv); env->henv = NULL; - return ret; + return ret2; } return pass(L); } -- 2.34.1