Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0390484 authored by Aditya Kumar's avatar Aditya Kumar Committed by Android (Google) Code Review
Browse files

Merge "Disable -Wunused-value for updatePhaseConfiguration" into main

parents 86bf84f8 f1cba197
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -486,6 +486,8 @@ void Scheduler::setDuration(Cycle cycle, std::chrono::nanoseconds workDuration,
    }
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-value" // b/369277774
void Scheduler::updatePhaseConfiguration(PhysicalDisplayId displayId, Fps refreshRate) {
    const bool isPacesetter =
            FTL_FAKE_GUARD(kMainThreadContext,
@@ -497,6 +499,7 @@ void Scheduler::updatePhaseConfiguration(PhysicalDisplayId displayId, Fps refres
    setVsyncConfig(mVsyncModulator->setVsyncConfigSet(mVsyncConfiguration->getCurrentConfigs()),
                   refreshRate.getPeriod());
}
#pragma clang diagnostic pop

void Scheduler::setActiveDisplayPowerModeForRefreshRateStats(hal::PowerMode powerMode) {
    mRefreshRateStats->setPowerMode(powerMode);