diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-19 21:32:44 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-01 19:37:05 +0300 |
commit | 4da0490bc07a458ad3fc7d586c7eabf6053c572f (patch) | |
tree | e2a22f818710b05bd9d89bac8c65cdfba492fefb /http | |
parent | 93cf0ac2c7921d3344fa112f667c47a838e3b7d6 (diff) | |
download | bmcweb-4da0490bc07a458ad3fc7d586c7eabf6053c572f.tar.xz |
Use no-switch-default on clang
clang-18 improves this check so that we can actually use it. Enable it
and fix all violations.
Change-Id: Ibe4ce19c423d447a4cbe593d1abba948362426af
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http')
-rw-r--r-- | http/routing.hpp | 2 | ||||
-rw-r--r-- | http/verb.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/http/routing.hpp b/http/routing.hpp index 562abaf06c..921bfe8dc0 100644 --- a/http/routing.hpp +++ b/http/routing.hpp @@ -319,7 +319,7 @@ class Trie case ParamType::PATH: BMCWEB_LOG_DEBUG("<path>"); break; - case ParamType::MAX: + default: BMCWEB_LOG_DEBUG("<ERROR>"); break; } diff --git a/http/verb.hpp b/http/verb.hpp index 5eacfbe567..5859d10b0d 100644 --- a/http/verb.hpp +++ b/http/verb.hpp @@ -67,7 +67,7 @@ inline std::string_view httpVerbToString(HttpVerb verb) return "PUT"; case HttpVerb::Options: return "OPTIONS"; - case HttpVerb::Max: + default: return ""; } |