From 1cb510d96fce332570eb0d139eab7aebdc039e11 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Thu, 10 Oct 2019 16:33:58 -0700 Subject: [PATCH] [bootable][recovery] 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: I6f8d658448f7e5dd980bf95b890b15cb0aab7407 Signed-off-by: Nick Desaulniers --- recovery_utils/roots.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recovery_utils/roots.cpp b/recovery_utils/roots.cpp index f717ec20..fe3a07aa 100644 --- a/recovery_utils/roots.cpp +++ b/recovery_utils/roots.cpp @@ -54,7 +54,11 @@ void load_volume_table() { } fstab.emplace_back(FstabEntry{ - .mount_point = "/tmp", .fs_type = "ramdisk", .blk_device = "ramdisk", .length = 0 }); + .blk_device = "ramdisk", + .mount_point = "/tmp", + .fs_type = "ramdisk", + .length = 0, + }); std::cout << "recovery filesystem table" << std::endl << "=========================" << std::endl; for (size_t i = 0; i < fstab.size(); ++i) {