aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 5a69f99..9c0f852 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -1208,6 +1208,7 @@ static void ex_newstate(lua_State *L) {
* Instead, we'll install our own panic handlers.
*/
#if defined LUA_RIDX_MAINTHREAD
+ (void)thr;
lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_MAINTHREAD);
state->L = lua_tothread(L, -1);
lua_pop(L, 1);