From 3891d995bb6458f557aa9a79b2f1ab29fbeabaec Mon Sep 17 00:00:00 2001 From: Mikhail Naganov Date: Wed, 13 Sep 2023 14:51:36 -0700 Subject: AidlMessageQueue: Fix order of fields assignment Match the order of MQDescriptor's fields assignment with their declaration order to avoid compiler warning. Bug: 176912570 Test: m Change-Id: I95a629440320f304120ee0ac7f3743dbe716ab2e --- include/fmq/AidlMessageQueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmq/AidlMessageQueue.h b/include/fmq/AidlMessageQueue.h index 0536d6a..bb56a32 100644 --- a/include/fmq/AidlMessageQueue.h +++ b/include/fmq/AidlMessageQueue.h @@ -144,10 +144,10 @@ MQDescriptor AidlMessageQueue::dupeDesc() { ints.push_back(shim->handle()->data[data_index]); } return MQDescriptor{ - .quantum = static_cast(shim->getQuantum()), .grantors = grantors, - .flags = static_cast(shim->getFlags()), .handle = {std::move(fds), std::move(ints)}, + .quantum = static_cast(shim->getQuantum()), + .flags = static_cast(shim->getFlags()), }; } else { return MQDescriptor(); -- cgit v1.2.3