From 48a7f72301befa2a8fda36c8e1a7a22f5333a0aa Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sun, 1 Feb 2026 13:55:46 -0500 Subject: [PATCH] Bugfix in lua_callback_result.cpp example --- example/lua_callback_result.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/lua_callback_result.cpp b/example/lua_callback_result.cpp index db4d510..230bf57 100644 --- a/example/lua_callback_result.cpp +++ b/example/lua_callback_result.cpp @@ -57,7 +57,8 @@ int do_work( lua_State * L ) } else { - return leaf::new_error(ec1), luaL_error(L,"do_work_error"); // luaL_error does not return (longjmp). + (void) leaf::new_error(ec1); + return luaL_error(L,"do_work_error"); // luaL_error does not return (longjmp). } }