From 65d03e4d8f545707b4bc5339c8a64630fbe3ea39 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Mon, 28 Oct 2019 13:44:49 -0700 Subject: [PATCH] [hardware][interfaces][sensors] fix -Wreorder-init-list again C++20 will require members in a designated initializer to be in order unlike C99. This snuck in because I haven't upgraded the platform toolchain yet. Bug: 139945549 Test: mm Change-Id: Ica2844a213467e41d9b6a8955f1750692da8b444 Signed-off-by: Nick Desaulniers --- sensors/common/vts/utils/GrallocWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/common/vts/utils/GrallocWrapper.cpp b/sensors/common/vts/utils/GrallocWrapper.cpp index e63faa2e1c..1cad9135b7 100644 --- a/sensors/common/vts/utils/GrallocWrapper.cpp +++ b/sensors/common/vts/utils/GrallocWrapper.cpp @@ -147,8 +147,8 @@ BufferDescriptor GrallocHalWrapper::getDescriptor(uint32_t .width = size, .height = 1, .layerCount = 1, - .format = static_cast(PixelFormat::BLOB), .usage = kBufferUsage, + .format = static_cast(PixelFormat::BLOB), }; BufferDescriptor descriptor;