mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
[muparser] Fix "enumeration value not handled in switch" warning
It's unclear whether the default behavior is ever executed. Add an assertion to find out the hard way.
This commit is contained in:
@@ -775,6 +775,9 @@ void ParserBase::ApplyFunc(ParserStack<token_type> &a_stOpt, ParserStack<token_t
|
||||
m_vRPN.AddFun(funTok.GetFuncAddr(),
|
||||
(funTok.GetArgCount() == -1) ? -iArgNumerical : iArgNumerical);
|
||||
break;
|
||||
default:
|
||||
assert(0 && "Unexpected function token");
|
||||
break;
|
||||
}
|
||||
|
||||
// Push dummy value representing the function result to the stack
|
||||
|
||||
Reference in New Issue
Block a user