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

Commit 993ce22f authored by Yi Kong's avatar Yi Kong
Browse files

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
parent c28b4632
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,8 @@ public:
    using Visitor = std::function<void(Layer*)>;

private:
    const StateSet mStateSet;
    // FIXME: This is set but not used anywhere.
    [[maybe_unused]] const StateSet mStateSet;
};
}

+3 −2
Original line number Diff line number Diff line
@@ -68,7 +68,8 @@ private:
    bool isLayerRelevant(int32_t layerId);

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

    // State owned by the main thread