mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
[hardware][interfaces][sensors] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order unlike C99. Bug: 139945549 Test: mm Change-Id: I78d64ea2b7df3f2bd3b8503aa553a0523b20d711 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
@@ -68,9 +68,9 @@ void convertFromSensorEvent(const sensors_event_t &src, Event *dst) {
|
||||
typedef ::android::hardware::sensors::V1_0::MetaDataEventType MetaDataEventType;
|
||||
|
||||
*dst = {
|
||||
.sensorHandle = src.sensor,
|
||||
.sensorType = (SensorType)src.type,
|
||||
.timestamp = src.timestamp
|
||||
.timestamp = src.timestamp,
|
||||
.sensorHandle = src.sensor,
|
||||
.sensorType = (SensorType)src.type,
|
||||
};
|
||||
|
||||
switch (dst->sensorType) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user