summaryrefslogtreecommitdiff
path: root/nn/common
diff options
context:
space:
mode:
authorAlan Green <avg@google.com>2020-07-02 14:52:25 +1000
committerAlan Green <avg@google.com>2020-07-03 11:30:30 +1000
commit0f7a71d531c0c17407f99d971d66767aae2554e5 (patch)
tree01a0578bf08f6a454e3fcc68e8528df00c1bdb4b /nn/common
parent8bfa7f71081776cacd6698612635b7297963f976 (diff)
downloadml-0f7a71d531c0c17407f99d971d66767aae2554e5.tar.gz
CpuExecutor: reorder field designators
Reorder initialization of fields of AHardwareBuffer_Desc to match struct declaration order. This allows the file to compile in ChromeOS, which uses the -Wreorder-init-list flag. ISO C++ requires field designators to be specified in declaration order. Test: Still compiles Change-Id: I7fb673e0a88b30ac83a57d21fd5dcab89b1cb4da
Diffstat (limited to 'nn/common')
-rw-r--r--nn/common/CpuExecutor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nn/common/CpuExecutor.cpp b/nn/common/CpuExecutor.cpp
index 1dcb2ba7b..b66339b4c 100644
--- a/nn/common/CpuExecutor.cpp
+++ b/nn/common/CpuExecutor.cpp
@@ -389,9 +389,9 @@ std::optional<RunTimePoolInfo> RunTimePoolInfo::createFromHidlMemory(
AHardwareBuffer_Desc desc{
.width = width,
- .format = format,
.height = height,
.layers = layers,
+ .format = format,
.usage = usage,
.stride = stride,
};