Skip to content

Commit

Permalink
i#6938 sched migrate: Use annotation for fallthrough (#6975)
Browse files Browse the repository at this point in the history
Replaces a comment with an official compiler annotation for a switch
case fallthrough, to fix a warning under some compilers as part of
running scheduler_unit_tests internally.

Issue: #6938
  • Loading branch information
derekbruening authored Sep 10, 2024
1 parent 8d681c3 commit ae6765c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/drcachesim/tests/scheduler_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5084,7 +5084,7 @@ test_kernel_switch_sequences()
case TRACE_MARKER_TYPE_TIMESTAMP: sched_as_string[i] += '0'; break;
case TRACE_MARKER_TYPE_CONTEXT_SWITCH_END:
in_switch[i] = false;
// Fall-through.
ANNOTATE_FALLTHROUGH;
case TRACE_MARKER_TYPE_CONTEXT_SWITCH_START:
if (memref.marker.marker_value == scheduler_t::SWITCH_PROCESS)
sched_as_string[i] += 'p';
Expand Down

0 comments on commit ae6765c

Please sign in to comment.