From 30a06c142de3b9198a44251b1ccc11fa838ef7ef Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Mon, 16 Nov 2009 22:20:44 +0000 Subject: Linux: fix uninit warnings when building -Os. http://codereview.chromium.org/401002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32105 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cancelable_request.cc | 2 +- chrome/browser/extensions/extension_bookmarks_module.cc | 2 +- chrome/browser/history/expire_history_backend.cc | 2 +- chrome/browser/net/dns_global.cc | 2 +- chrome/browser/renderer_host/render_widget_helper.cc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/cancelable_request.cc b/chrome/browser/cancelable_request.cc index bfc1d532..1d20eca 100644 --- a/chrome/browser/cancelable_request.cc +++ b/chrome/browser/cancelable_request.cc @@ -54,7 +54,7 @@ void CancelableRequestProvider::CancelRequestLocked(Handle handle) { } void CancelableRequestProvider::RequestCompleted(Handle handle) { - CancelableRequestConsumerBase* consumer; + CancelableRequestConsumerBase* consumer = NULL; { AutoLock lock(pending_request_lock_); diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index fb9bc47..fe19d67 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -481,7 +481,7 @@ bool MoveBookmarkFunction::RunImpl() { return false; } - const BookmarkNode* parent; + const BookmarkNode* parent = NULL; if (!destination->HasKey(keys::kParentIdKey)) { // Optional, defaults to current parent. parent = node->GetParent(); diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc index 3c1aff3..882a53c 100644 --- a/chrome/browser/history/expire_history_backend.cc +++ b/chrome/browser/history/expire_history_backend.cc @@ -349,7 +349,7 @@ void ExpireHistoryBackend::DeleteVisitRelatedInfo( // Add the URL row to the affected URL list. std::map::const_iterator found = dependencies->affected_urls.find(visits[i].url_id); - const URLRow* cur_row; + const URLRow* cur_row = NULL; if (found == dependencies->affected_urls.end()) { URLRow row; if (!main_db_->GetURLRow(visits[i].url_id, &row)) diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc index 7caef17..970a529 100644 --- a/chrome/browser/net/dns_global.cc +++ b/chrome/browser/net/dns_global.cc @@ -228,7 +228,7 @@ void PrefetchObserver::OnFinishResolutionWithStatus( if (request_info.is_speculative()) return; // One of our own requests. DnsHostInfo navigation_info; - size_t startup_count; + size_t startup_count = 0; { AutoLock auto_lock(*lock); ObservedResolutionMap::iterator it = resolutions->find(request_id); diff --git a/chrome/browser/renderer_host/render_widget_helper.cc b/chrome/browser/renderer_host/render_widget_helper.cc index 51a533f..8916c70 100644 --- a/chrome/browser/renderer_host/render_widget_helper.cc +++ b/chrome/browser/renderer_host/render_widget_helper.cc @@ -137,7 +137,7 @@ bool RenderWidgetHelper::WaitForPaintMsg(int render_widget_id, void RenderWidgetHelper::DidReceivePaintMsg(const IPC::Message& msg) { int render_widget_id = msg.routing_id(); - PaintMsgProxy* proxy; + PaintMsgProxy* proxy = NULL; { AutoLock lock(pending_paints_lock_); -- cgit v1.1