xref: /aosp_15_r20/external/libchrome/libchrome_tools/patch/c7ce19d.patch (revision 635a864187cb8b6c713ff48b7e790a6b21769273)
1*635a8641SAndroid Build Coastguard WorkerFrom c7ce19d52a7e6f3e69e66107650992765da559b7 Mon Sep 17 00:00:00 2001
2*635a8641SAndroid Build Coastguard WorkerFrom: Jakub Pawlowski <[email protected]>
3*635a8641SAndroid Build Coastguard WorkerDate: Mon, 06 Aug 2018 03:06:46 +0000
4*635a8641SAndroid Build Coastguard WorkerSubject: [PATCH] Make LAZY_INSTANCE_INITIALIZER -Wmissing-field-initializers friendly
5*635a8641SAndroid Build Coastguard Worker
6*635a8641SAndroid Build Coastguard WorkerIf libbase is compiled with -Wmissing-field-initializers this is causing
7*635a8641SAndroid Build Coastguard Workerwarning to be generated.
8*635a8641SAndroid Build Coastguard Worker
9*635a8641SAndroid Build Coastguard WorkerChange-Id: I446160d4c94bb59dd23f2f151004a8bfaeae832d
10*635a8641SAndroid Build Coastguard WorkerReviewed-on: https://chromium-review.googlesource.com/1161927
11*635a8641SAndroid Build Coastguard WorkerReviewed-by: Gabriel Charette <[email protected]>
12*635a8641SAndroid Build Coastguard WorkerCommit-Queue: Luis Hector Chavez <[email protected]>
13*635a8641SAndroid Build Coastguard WorkerCr-Commit-Position: refs/heads/master@{#580794}
14*635a8641SAndroid Build Coastguard Worker---
15*635a8641SAndroid Build Coastguard Worker
16*635a8641SAndroid Build Coastguard Workerdiff --git a/base/lazy_instance.h b/base/lazy_instance.h
17*635a8641SAndroid Build Coastguard Workerindex 36d3158..4449373 100644
18*635a8641SAndroid Build Coastguard Worker--- a/base/lazy_instance.h
19*635a8641SAndroid Build Coastguard Worker+++ b/base/lazy_instance.h
20*635a8641SAndroid Build Coastguard Worker@@ -55,7 +55,7 @@
21*635a8641SAndroid Build Coastguard Worker
22*635a8641SAndroid Build Coastguard Worker // LazyInstance uses its own struct initializer-list style static
23*635a8641SAndroid Build Coastguard Worker // initialization, which does not require a constructor.
24*635a8641SAndroid Build Coastguard Worker-#define LAZY_INSTANCE_INITIALIZER {0}
25*635a8641SAndroid Build Coastguard Worker+#define LAZY_INSTANCE_INITIALIZER {}
26*635a8641SAndroid Build Coastguard Worker
27*635a8641SAndroid Build Coastguard Worker namespace base {
28*635a8641SAndroid Build Coastguard Worker
29