mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue