Skip to content

Commit 993ce22

Browse files
committed
Silience compiler errors from clang-r563880
frameworks/native/services/surfaceflinger/PowerAdvisor/SessionManager.h:71:17: error: private field 'mUid' is not used [-Werror,-Wunused-private-field] 71 | const uid_t mUid; | ^ Test: presubmit Flag: EXEMPT, code cleanup Change-Id: I544c912fea01c999d2a835a158441b6ed81deba0
1 parent c28b463 commit 993ce22

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

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)