1From c7ce19d52a7e6f3e69e66107650992765da559b7 Mon Sep 17 00:00:00 2001 2From: Jakub Pawlowski <jpawlowski@google.com> 3Date: Mon, 06 Aug 2018 03:06:46 +0000 4Subject: [PATCH] Make LAZY_INSTANCE_INITIALIZER -Wmissing-field-initializers friendly 5 6If libbase is compiled with -Wmissing-field-initializers this is causing 7warning to be generated. 8 9Change-Id: I446160d4c94bb59dd23f2f151004a8bfaeae832d 10Reviewed-on: https://chromium-review.googlesource.com/1161927 11Reviewed-by: Gabriel Charette <gab@chromium.org> 12Commit-Queue: Luis Hector Chavez <lhchavez@chromium.org> 13Cr-Commit-Position: refs/heads/master@{#580794} 14--- 15 16diff --git a/base/lazy_instance.h b/base/lazy_instance.h 17index 36d3158..4449373 100644 18--- a/base/lazy_instance.h 19+++ b/base/lazy_instance.h 20@@ -55,7 +55,7 @@ 21 22 // LazyInstance uses its own struct initializer-list style static 23 // initialization, which does not require a constructor. 24-#define LAZY_INSTANCE_INITIALIZER {0} 25+#define LAZY_INSTANCE_INITIALIZER {} 26 27 namespace base { 28 29