mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
unused variable warnings
This commit is contained in:
parent
0563d9e124
commit
32feb7ab7b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user