Skip to content

Commit

Permalink
command: Fixed a bunch of clang-tidy lints about missing default case…
Browse files Browse the repository at this point in the history
…s in switch-case blocks
  • Loading branch information
dragonmux committed Oct 6, 2024
1 parent e37df3e commit 62c100b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ static bool cmd_jtag_scan(target_s *target, int argc, const char **argv)
case EXCEPTION_ERROR:
gdb_outf("Exception: %s\n", exception_frame.msg);
break;
default:
break;
}

if (!scan_result) {
Expand Down Expand Up @@ -293,6 +295,8 @@ bool cmd_swd_scan(target_s *target, int argc, const char **argv)
case EXCEPTION_ERROR:
gdb_outf("Exception: %s\n", exception_frame.msg);
break;
default:
break;
}

if (!scan_result) {
Expand Down Expand Up @@ -345,6 +349,8 @@ bool cmd_auto_scan(target_s *target, int argc, const char **argv)
case EXCEPTION_ERROR:
gdb_outf("Exception: %s\n", exception_frame.msg);
break;
default:
break;
}

if (!scan_result) {
Expand Down Expand Up @@ -377,6 +383,8 @@ bool cmd_frequency(target_s *target, int argc, const char **argv)
case 'M':
frequency *= 1000U * 1000U;
break;
default:
break;
}
platform_max_frequency_set(frequency);
}
Expand Down

0 comments on commit 62c100b

Please sign in to comment.