diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2019-10-07 23:28:15 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2019-10-10 14:54:35 -0700 |
commit | 67d52aa0f684fe6fb898c2ccda1d7bb302d3a5e0 (patch) | |
tree | bdbdac970f740a73148d7619a60133186e3a2392 /debuggerd/debuggerd_test.cpp | |
parent | 9186612f9a53e3d1e77e8c272f3f6d15a2dc50cf (diff) |
[debuggerd] fix -Wreorder-init-list
C++20 wants members to be ordered unlike C99.
Bug: 139945549
Test: mm
Change-Id: I3cbca589511c1e0bbc10c691949e18de77e16031
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'debuggerd/debuggerd_test.cpp')
-rw-r--r-- | debuggerd/debuggerd_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp index c9a193c62..99729dcd9 100644 --- a/debuggerd/debuggerd_test.cpp +++ b/debuggerd/debuggerd_test.cpp @@ -101,7 +101,10 @@ static void tombstoned_intercept(pid_t target_pid, unique_fd* intercept_fd, uniq FAIL() << "failed to contact tombstoned: " << strerror(errno); } - InterceptRequest req = {.pid = target_pid, .dump_type = intercept_type}; + InterceptRequest req = { + .dump_type = intercept_type, + .pid = target_pid, + }; unique_fd output_pipe_write; if (!Pipe(output_fd, &output_pipe_write)) { |