commit | 3a2179a7f3d2552f63789f5b51e0cb74bc4ddfab | [log] [tgz] |
---|---|---|
author | James Hawkins <jhawkins@google.com> | Fri Feb 26 15:15:06 2016 -0800 |
committer | James Hawkins <jhawkins@google.com> | Fri Feb 26 15:15:06 2016 -0800 |
tree | e392453f9e2540a5b8587f1dd56055db87387793 | |
parent | b38168081ff32381366bf9b0d2cf23c7d88b53df [diff] |
crash_reporter: Fix a -Wmissing-field-initializers warning. The fix is to use the C++ empty struct initialization {} instead of the C-style {0}. Bug: 27378717 Change-Id: I36896d1202bf30b5db5689ac13acaff3b3f1b30b
diff --git a/crash_reporter/crash_collector_test.cc b/crash_reporter/crash_collector_test.cc index 7146638..a386cd1 100644 --- a/crash_reporter/crash_collector_test.cc +++ b/crash_reporter/crash_collector_test.cc
@@ -95,7 +95,7 @@ } TEST_F(CrashCollectorTest, FormatDumpBasename) { - struct tm tm = {0}; + struct tm tm = {}; tm.tm_sec = 15; tm.tm_min = 50; tm.tm_hour = 13;