summaryrefslogtreecommitdiff
path: root/libs/binder/RpcState.cpp
diff options
context:
space:
mode:
author Andrei Homescu <ahomescu@google.com> 2022-03-08 22:54:40 +0000
committer Andrei Homescu <ahomescu@google.com> 2022-03-08 23:52:59 +0000
commit5a036f3748016c19847e9f321865c5c655041c18 (patch)
tree075e323affecb8a2496a8ca92ed49e9277a162db /libs/binder/RpcState.cpp
parentbc8d5b4830d7fb5afe52f9d8809212babedd72b1 (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.cpp2
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;