From 32feb7ab7b861072e17040ea47fe7dca0fae2804 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 3 Apr 2017 08:19:16 -0400 Subject: [PATCH] unused variable warnings --- examples/script_error_handling.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/script_error_handling.cpp b/examples/script_error_handling.cpp index d97ded71..5ea7bc04 100644 --- a/examples/script_error_handling.cpp +++ b/examples/script_error_handling.cpp @@ -25,7 +25,8 @@ return 24 try { int value = lua.script(code, sol::default_on_error); // This will never be reached - assert(false); + std::cout << value << std::endl; + assert(value == 24); } catch (const sol::error& err) { std::cout << "Something went horribly wrong: thrown error" << "\n\t" << err.what() << std::endl;