diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2019-11-12 13:48:58 -0800 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2019-11-12 13:48:58 -0800 |
commit | 6f4a232928aae15999c866ef0ff67bc7bde024e4 (patch) | |
tree | 4023f808b86ecc3874a482458d2d80945c90e0e2 /sensors/common | |
parent | 2b0be27caf3d5af1ad4d3608689e81fb79c88ead (diff) | |
download | platform_hardware_interfaces-6f4a232928aae15999c866ef0ff67bc7bde024e4.tar.gz platform_hardware_interfaces-6f4a232928aae15999c866ef0ff67bc7bde024e4.tar.bz2 platform_hardware_interfaces-6f4a232928aae15999c866ef0ff67bc7bde024e4.zip |
hardware: interfaces: sensors: fix -Wreorder-init-list
C++20 is stricter about member ordering in designated initializers than
C99.
Bug: 139945549
Test: mm
Change-Id: I22179dfb829c328462c9b31caf543692d3cf57d9
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'sensors/common')
-rw-r--r-- | sensors/common/vts/utils/GrallocWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sensors/common/vts/utils/GrallocWrapper.cpp b/sensors/common/vts/utils/GrallocWrapper.cpp index 1cad9135b7..e63faa2e1c 100644 --- a/sensors/common/vts/utils/GrallocWrapper.cpp +++ b/sensors/common/vts/utils/GrallocWrapper.cpp @@ -147,8 +147,8 @@ BufferDescriptor GrallocHalWrapper<AllocatorT, MapperT>::getDescriptor(uint32_t .width = size, .height = 1, .layerCount = 1, - .usage = kBufferUsage, .format = static_cast<decltype(descriptorInfo.format)>(PixelFormat::BLOB), + .usage = kBufferUsage, }; BufferDescriptor descriptor; |