mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Add explicit case statements where -Wswitch-enum would report them
This commit is contained in:
parent
ed7885017c
commit
3dac4c7874
5 changed files with 7 additions and 2 deletions
|
@ -2337,6 +2337,7 @@ bool EvalState::eqValues(Value & v1, Value & v2, const PosIdx pos, std::string_v
|
|||
case nFloat:
|
||||
return v1.fpoint == v2.fpoint;
|
||||
|
||||
case nThunk: // Must not be left by forceValue
|
||||
default:
|
||||
error("cannot compare %1% with %2%", showType(v1), showType(v2)).withTrace(pos, errorCtx).debugThrow<EvalError>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue