From 219b32d1d63f974fdd7fbc39d01fa26f1480e475 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 20 Nov 2018 18:19:44 -0300 Subject: [PATCH] Fix unused variable warning in Release mode --- src/app/script/luacpp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/script/luacpp.cpp b/src/app/script/luacpp.cpp index 61c9c6e24..ca254441a 100644 --- a/src/app/script/luacpp.cpp +++ b/src/app/script/luacpp.cpp @@ -1,4 +1,5 @@ // Aseprite +// Copyright (C) 2018 Igara Studio S.A. // Copyright (C) 2018 David Capello // // This program is distributed under the terms of @@ -50,7 +51,9 @@ void create_mt_getters_setters(lua_State* L, const char* tname, const Property* properties) { +#ifdef _DEBUG const int top = lua_gettop(L); +#endif bool withGetters = false; bool withSetters = false;