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

Unified Diff: chrome/common/gpu_messages.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/common_param_traits.cc ('k') | chrome/common/indexed_db_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_messages.cc
diff --git a/chrome/common/gpu_messages.cc b/chrome/common/gpu_messages.cc
index 5e0baceb97037144c3b0d9a7f2934335e037db50..1128ce5fa54799bb94dd64e218a0d6de78d9dad9 100644
--- a/chrome/common/gpu_messages.cc
+++ b/chrome/common/gpu_messages.cc
@@ -149,20 +149,20 @@ void ParamTraits<GPUInfo> ::Write(Message* m, const param_type& p) {
}
bool ParamTraits<GPUInfo> ::Read(const Message* m, void** iter, param_type* p) {
- int32 level;
+ int32 level = 0; // clang pr9122
base::TimeDelta initialization_time;
- uint32 vendor_id;
- uint32 device_id;
+ uint32 vendor_id = 0; // clang pr9122
+ uint32 device_id = 0; // clang pr9122
std::string driver_vendor;
std::string driver_version;
- uint32 pixel_shader_version;
- uint32 vertex_shader_version;
- uint32 gl_version;
+ uint32 pixel_shader_version = 0; // clang pr9122
+ uint32 vertex_shader_version = 0; // clang pr9122
+ uint32 gl_version = 0; // clang pr9122
std::string gl_version_string;
std::string gl_vendor;
std::string gl_renderer;
std::string gl_extensions;
- bool can_lose_context;
+ bool can_lose_context = false; // clang pr9122
bool ret = ReadParam(m, iter, &level);
ret = ret && ReadParam(m, iter, &initialization_time);
ret = ret && ReadParam(m, iter, &vendor_id);
« no previous file with comments | « chrome/common/common_param_traits.cc ('k') | chrome/common/indexed_db_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698