Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5845)

Unified Diff: chrome/common/indexed_db_param_traits.cc

Issue 6368094: -Wuninitialized fixes Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | chrome/test/webdriver/commands/find_element_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/indexed_db_param_traits.cc
diff --git a/chrome/common/indexed_db_param_traits.cc b/chrome/common/indexed_db_param_traits.cc
index 70c10ffb5cf4dc0e830e445fe6f39a997cba3abb..7a7745c3fb6bc4249d3498d8ad1ab3336db19013 100644
--- a/chrome/common/indexed_db_param_traits.cc
+++ b/chrome/common/indexed_db_param_traits.cc
@@ -20,8 +20,8 @@ void ParamTraits<SerializedScriptValue>::Write(Message* m,
bool ParamTraits<SerializedScriptValue>::Read(const Message* m,
void** iter,
param_type* r) {
- bool is_null;
- bool is_invalid;
+ bool is_null = false; // clang pr9122
+ bool is_invalid = false; // clang pr9122
string16 data;
bool ok =
ReadParam(m, iter, &is_null) &&
@@ -59,8 +59,8 @@ bool ParamTraits<IndexedDBKey>::Read(const Message* m,
param_type* r) {
int type;
string16 string;
- double date;
- double number;
+ double date = 0; // clang pr9122
+ double number = 0; // clang pr9122
bool ok =
ReadParam(m, iter, &type) &&
ReadParam(m, iter, &string) &&
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | chrome/test/webdriver/commands/find_element_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698