1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21: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

@ -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;