diff options
author | 2022-03-08 22:54:40 +0000 | |
---|---|---|
committer | 2022-03-08 23:52:59 +0000 | |
commit | 5a036f3748016c19847e9f321865c5c655041c18 (patch) | |
tree | 075e323affecb8a2496a8ca92ed49e9277a162db /libs/binder/RpcState.cpp | |
parent | bc8d5b4830d7fb5afe52f9d8809212babedd72b1 (diff) |
libbinder: Fix initializer order error in RpcState.cpp
Building with -Wreorder-init-list fails with an error in
RpcState.cpp when initializing a BinderNode structure.
This fixes the error by manually moving the initializers
in the right order.
Bug: None
Test: m
Change-Id: I81ca1f52ad0f6955f0a32658f8f367a3539baf06
Diffstat (limited to 'libs/binder/RpcState.cpp')
-rw-r--r-- | libs/binder/RpcState.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp index 4ddbce71a8..2e7084e12e 100644 --- a/libs/binder/RpcState.cpp +++ b/libs/binder/RpcState.cpp @@ -125,8 +125,8 @@ status_t RpcState::onBinderLeaving(const sp<RpcSession>& session, const sp<IBind auto&& [it, inserted] = mNodeForAddress.insert({RpcWireAddress::toRaw(address), BinderNode{ .binder = binder, - .timesSent = 1, .sentRef = binder, + .timesSent = 1, }}); if (inserted) { *outAddress = it->first; |