From 69bd21f69556be7b2fc620317334514716ddca98 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Fri, 26 Feb 2016 15:15:06 -0800 Subject: [PATCH] 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 --- crash_reporter/crash_collector_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crash_reporter/crash_collector_test.cc b/crash_reporter/crash_collector_test.cc index 714663892..a386cd118 100644 --- a/crash_reporter/crash_collector_test.cc +++ b/crash_reporter/crash_collector_test.cc @@ -95,7 +95,7 @@ TEST_F(CrashCollectorTest, Sanitize) { } TEST_F(CrashCollectorTest, FormatDumpBasename) { - struct tm tm = {0}; + struct tm tm = {}; tm.tm_sec = 15; tm.tm_min = 50; tm.tm_hour = 13;