From 4dc13f80c388798175259922b1bfba58e382c296 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Wed, 13 Nov 2024 10:21:05 -0500 Subject: [PATCH] Fix Windows build warning --- clients/drcachesim/scheduler/scheduler_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/drcachesim/scheduler/scheduler_impl.cpp b/clients/drcachesim/scheduler/scheduler_impl.cpp index 67a0d5c0c4e..0210b31214d 100644 --- a/clients/drcachesim/scheduler/scheduler_impl.cpp +++ b/clients/drcachesim/scheduler/scheduler_impl.cpp @@ -3422,7 +3422,7 @@ scheduler_impl_tmpl_t::next_record(output_ordinal_t outp VPRINT(this, 5, "next_record[%d]: queuing candidate record\n", output); input->queue.push_back(record); lock.unlock(); - stream_status_t res = pick_next_input(output, blocked_time); + res = pick_next_input(output, blocked_time); if (res != sched_type_t::STATUS_OK && res != sched_type_t::STATUS_WAIT && res != sched_type_t::STATUS_SKIPPED) return res; @@ -3477,7 +3477,7 @@ scheduler_impl_tmpl_t::next_record(output_ordinal_t outp if (input->needs_roi && options_.mapping != sched_type_t::MAP_AS_PREVIOUSLY && !input->regions_of_interest.empty()) { input_ordinal_t prev_input = input->index; - stream_status_t res = advance_region_of_interest(output, record, *input); + res = advance_region_of_interest(output, record, *input); if (res == sched_type_t::STATUS_SKIPPED) { // We need either the queue or to re-de-ref the reader so we loop, // but we do not want to come back here.