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>
diff --git a/http/routing.hpp b/http/routing.hpp
index 562abaf..921bfe8 100644
--- a/http/routing.hpp
+++ b/http/routing.hpp
@@ -319,7 +319,7 @@
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 5eacfbe..5859d10 100644
--- a/http/verb.hpp
+++ b/http/verb.hpp
@@ -67,7 +67,7 @@
return "PUT";
case HttpVerb::Options:
return "OPTIONS";
- case HttpVerb::Max:
+ default:
return "";
}