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};