From 454010c9e72a623469df27ec61763bb78caf12e0 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 15 Jan 2024 21:58:28 +0200 Subject: [PATCH] Fix warning on fallthrough case --- LuaValue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LuaValue.cpp b/LuaValue.cpp index 56590bd748..56b6c24020 100644 --- a/LuaValue.cpp +++ b/LuaValue.cpp @@ -250,10 +250,10 @@ LuaVal LuaVal::AsLuaVal(lua_State* L, int index) case LUA_TUSERDATA: if (LuaVal* ptr = GetLuaVal(L, index)) return ptr->reference(); - default: - luaL_argerror(L, index, "Trying to use unsupported type"); - return LuaVal(); + break; } + luaL_argerror(L, index, "Trying to use unsupported type"); + return LuaVal(); } int LuaVal::lua_AsLuaVal(lua_State* L)