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:
parent
ed7885017c
commit
3dac4c7874
5 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue