Skip to content

Commit d039048

Browse files
appujeeAndroid (Google) Code Review
authored andcommitted
Merge "Disable -Wunused-value for updatePhaseConfiguration" into main
2 parents 86bf84f + f1cba19 commit d039048

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

services/surfaceflinger/Scheduler/Scheduler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ void Scheduler::setDuration(Cycle cycle, std::chrono::nanoseconds workDuration,
486486
}
487487
}
488488

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

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

0 commit comments

Comments
 (0)