Chromium Code Reviews

Unified Diff: base/message_loop.cc

Issue 6368094: -Wuninitialized fixes Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | base/process_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index d83adccec08b56f8cdeb991c1b06af60d7a877e0..5e2cbcee5c9df1263c8585ffcf43cf66d1d29cab 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -165,7 +165,7 @@ MessageLoop::~MessageLoop() {
// tasks. Normally, we should only pass through this loop once or twice. If
// we end up hitting the loop limit, then it is probably due to one task that
// is being stubborn. Inspect the queues to see who is left.
- bool did_work;
+ bool did_work = false; // clang pr9061
for (int i = 0; i < 100; ++i) {
DeletePendingTasks();
ReloadWorkQueue();
« no previous file with comments | « no previous file | base/process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine