Skip to content
Snippets Groups Projects
Verified Commit d78dea30 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Use __builtin_unreachable() to silent some GCC warnings

This is cleaner than using exit() for that purpose.
parent daa6b556
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ BasicSymbolTable::getName(SymbolType type, int tsid) const
{
mexErrMsgTxt(("Unknown symbol with ID " + to_string(tsid) + " and type " + to_string(static_cast<int>(type))).c_str());
}
exit(EXIT_FAILURE); // Silence GCC warning
__builtin_unreachable(); // Silence GCC warning
}
pair<SymbolType, int>
......@@ -89,7 +89,7 @@ BasicSymbolTable::getIDAndType(const string &name) const
{
mexErrMsgTxt(("Unknown symbol: " + name).c_str());
}
exit(EXIT_FAILURE); // Silence GCC warning
__builtin_unreachable(); // Silence GCC warning
}
size_t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment