mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 09:58:54 +08: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:
parent
a7f6105497
commit
fc110d2c0e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user