unused variable warnings

This commit is contained in:
ThePhD 2017-04-03 08:19:16 -04:00
parent 0563d9e124
commit 32feb7ab7b

View File

@ -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;