Revision: 4780
Author: [email protected]
Date: Wed Jun 2 01:58:44 2010
Log: Add missing initialization of a couple of variables which makes
some compilers complaint when compiling with -Werror.
Review URL: http://codereview.chromium.org/2492001
http://code.google.com/p/v8/source/detail?r=4780
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /branches/bleeding_edge/src/objects.cc Wed Jun 2 01:17:19 2010
+++ /branches/bleeding_edge/src/objects.cc Wed Jun 2 01:58:44 2010
@@ -2700,7 +2700,7 @@
return Heap::undefined_value();
}
- uint32_t index;
+ uint32_t index = 0;
bool is_element = name->AsArrayIndex(&index);
if (is_element && IsJSArray()) return Heap::undefined_value();
@@ -2958,7 +2958,7 @@
// Make the lookup and include prototypes.
int accessor_index = is_getter ? kGetterIndex : kSetterIndex;
- uint32_t index = 0; // Initialize index to make compiler happy.
+ uint32_t index = 0;
if (name->AsArrayIndex(&index)) {
for (Object* obj = this;
obj != Heap::null_value();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev