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

@ -67,7 +67,8 @@ public:
case lvlWarn: c = '4'; break;
case lvlNotice: case lvlInfo: c = '5'; break;
case lvlTalkative: case lvlChatty: c = '6'; break;
default: c = '7';
case lvlDebug: case lvlVomit: c = '7';
default: c = '7'; break;
}
prefix = std::string("<") + c + ">";
}