1
0
Fork 0
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:
Robert Hensing 2023-04-03 18:03:20 +02:00
parent ed7885017c
commit 3dac4c7874
5 changed files with 7 additions and 2 deletions

View file

@ -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>();
}