From 21834485e33408ec08bdfd2a1f622fa273d36a4b Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Tue, 15 Oct 2019 19:09:46 -0700 Subject: [inputflinger] fix -Wreorder-init-list C++20 is stricter about member ordering in designated initializers than C99. Bug: 139945549 Test: mm Change-Id: I2eda816418d1accac614cbfba07bac511c5d622c Signed-off-by: Nick Desaulniers --- services/inputflinger/host/InputDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/inputflinger/host/InputDriver.cpp b/services/inputflinger/host/InputDriver.cpp index 2f046c3527..683c05d8a0 100644 --- a/services/inputflinger/host/InputDriver.cpp +++ b/services/inputflinger/host/InputDriver.cpp @@ -127,10 +127,10 @@ input_device_identifier_t* InputDriver::createDeviceIdentifier( input_bus_t bus, const char* uniqueId) { auto identifier = new ::input_device_identifier { .name = name, - .productId = productId, - .vendorId = vendorId, - .bus = bus, .uniqueId = uniqueId, + .bus = bus, + .vendorId = vendorId, + .productId = productId, }; // TODO: store this identifier somewhere return identifier; -- cgit v1.2.3-59-g8ed1b