From 4c6fdac6888f3a9886f0ea034d928e1698b84d1a Mon Sep 17 00:00:00 2001 From: flamewing Date: Fri, 22 Mar 2024 20:52:56 +0100 Subject: [PATCH] Fix SonarLint complaint --- include/mdcomp/options_lib.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/mdcomp/options_lib.hh b/include/mdcomp/options_lib.hh index bd4fed8..201b3c7 100644 --- a/include/mdcomp/options_lib.hh +++ b/include/mdcomp/options_lib.hh @@ -60,6 +60,7 @@ consteval auto make_short_options() { continue; } intermediate[length++] = val; + // NOLINTNEXTLINE(clang-diagnostic-switch-default) switch (opt.has_arg) { case no_argument: break; @@ -70,6 +71,8 @@ consteval auto make_short_options() { case required_argument: intermediate[length++] = ':'; break; + default: + __builtin_unreachable(); } } return std::pair{intermediate, length};