aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-04-03 18:03:20 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-04-03 18:17:32 +0200
commit3dac4c7874b876dc28d522aa4eddd8b4deb64378 (patch)
tree6d12fc14e4e6cf245d55920f712c1a19a031d878 /src/libexpr/eval.cc
parented7885017c25940f571dc58e94ca47fa84780f9d (diff)
Add explicit case statements where -Wswitch-enum would report them
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 22337a3ff..a5e9636ae 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -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>();
}