Add explicit case statements where -Wswitch-enum would report them

This commit is contained in:
Robert Hensing
2023-04-03 18:17:32 +02:00
parent ed7885017c
commit 3dac4c7874
5 changed files with 7 additions and 2 deletions
+2
View File
@@ -1024,6 +1024,8 @@ std::ostream & NixRepl::printValue(std::ostream & str, Value & v, unsigned int m
str << v.fpoint;
break;
case nThunk:
case nExternal:
default:
str << ANSI_RED "«unknown»" ANSI_NORMAL;
break;