From 4da0490bc07a458ad3fc7d586c7eabf6053c572f Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Tue, 19 Mar 2024 11:32:44 -0700 Subject: 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 --- http/routing.hpp | 2 +- http/verb.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'http') 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(""); break; - case ParamType::MAX: + default: BMCWEB_LOG_DEBUG(""); 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 ""; } -- cgit v1.2.3