Skip to content

Commit

Permalink
Fix SonarLint complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
flamewing committed Mar 22, 2024
1 parent 8200969 commit 4c6fdac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/mdcomp/options_lib.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -70,6 +71,8 @@ consteval auto make_short_options() {
case required_argument:
intermediate[length++] = ':';
break;
default:
__builtin_unreachable();
}
}
return std::pair{intermediate, length};
Expand Down

0 comments on commit 4c6fdac

Please sign in to comment.