diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-04-03 18:03:20 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-04-03 18:17:32 +0200 |
commit | 3dac4c7874b876dc28d522aa4eddd8b4deb64378 (patch) | |
tree | 6d12fc14e4e6cf245d55920f712c1a19a031d878 /src/libutil | |
parent | ed7885017c25940f571dc58e94ca47fa84780f9d (diff) |
Add explicit case statements where -Wswitch-enum would report them
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/logging.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc index 28b385461..741e1d1f5 100644 --- a/src/libutil/logging.cc +++ b/src/libutil/logging.cc @@ -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 + ">"; } |