From 515f92cd61e1933ef280ab96ee329a0a9f4a94f7 Mon Sep 17 00:00:00 2001 From: "jimblandy@gmail.com" Date: Mon, 27 Jul 2009 21:28:57 +0000 Subject: [PATCH] Remove warnings about uninitialized fields. A=jimblandy R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@361 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/linux/dump_symbols.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/linux/dump_symbols.cc b/src/common/linux/dump_symbols.cc index 046c7b34..d46f515f 100644 --- a/src/common/linux/dump_symbols.cc +++ b/src/common/linux/dump_symbols.cc @@ -251,6 +251,9 @@ static int LoadLineInfo(struct nlist *list, // Don't set it here. // Will be processed in later pass. line.source_id = -1; + // Compiler worries about uninitialized fields in copy for 'push_back'. + line.size = 0; + line.rva_to_base = 0; func_info->line_info.push_back(line); ++cur_list; }