Skip to content

Commit

Permalink
i#6471 sched idle: Fix assert define (#6497)
Browse files Browse the repository at this point in the history
Fixes an assert variable decl to use #ifndef NDEBUG instead of #ifdef
DEBUG to support builds in between DEBUG and NDEBUG. We don't have such
builds on Github but some third-party builders use them.

Issue: #6471
  • Loading branch information
derekbruening authored Dec 7, 2023
1 parent 110ca5e commit 591a1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/drcachesim/scheduler/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ scheduler_tmpl_t<RecordType, ReaderType>::set_initial_schedule(
for (int i = 0; i < static_cast<output_ordinal_t>(outputs_.size()); ++i) {
if (i < static_cast<input_ordinal_t>(inputs_.size())) {
input_info_t *queue_next;
#ifdef DEBUG
#ifndef NDEBUG
sched_type_t::stream_status_t status =
#endif
pop_from_ready_queue(i, queue_next);
Expand Down

0 comments on commit 591a1f7

Please sign in to comment.