Skip to content

Commit

Permalink
i#6938 sched migrate: Use annotation for fallthrough
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 committed Sep 9, 2024
1 parent 6630c73 commit 13e7ced
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 @@ -5076,7 +5076,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 13e7ced

Please sign in to comment.