From 13e7ced21d70ecdd3444a63d7255cf61225b6f74 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Fri, 6 Sep 2024 15:46:05 -0400 Subject: [PATCH] i#6938 sched migrate: Use annotation for fallthrough 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 --- clients/drcachesim/tests/scheduler_unit_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/drcachesim/tests/scheduler_unit_tests.cpp b/clients/drcachesim/tests/scheduler_unit_tests.cpp index b7f6c9b67c5..f54cdbcd10c 100644 --- a/clients/drcachesim/tests/scheduler_unit_tests.cpp +++ b/clients/drcachesim/tests/scheduler_unit_tests.cpp @@ -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';