Skip to content

Commit e706973

Browse files
kongyAndroid (Google) Code Review
authored andcommitted
Merge "Silience compiler errors from clang-r563880" into main
2 parents 86883f5 + 993ce22 commit e706973

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

services/surfaceflinger/LayerVector.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class LayerVector : public SortedVector<sp<Layer>> {
4949
using Visitor = std::function<void(Layer*)>;
5050

5151
private:
52-
const StateSet mStateSet;
52+
// FIXME: This is set but not used anywhere.
53+
[[maybe_unused]] const StateSet mStateSet;
5354
};
5455
}
5556

services/surfaceflinger/PowerAdvisor/SessionManager.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ class SessionManager : public BnSessionManager {
6868
bool isLayerRelevant(int32_t layerId);
6969

7070
// The UID of whoever created our ISessionManager connection
71-
const uid_t mUid;
71+
// FIXME: This is set but is not used anywhere.
72+
[[maybe_unused]] const uid_t mUid;
7273

7374
// State owned by the main thread
7475

@@ -99,4 +100,4 @@ class SessionManager : public BnSessionManager {
99100
};
100101

101102
} // namespace adpf
102-
} // namespace android
103+
} // namespace android

0 commit comments

Comments
 (0)