Revision: 4777
Author: [email protected]
Date: Wed Jun  2 01:17:19 2010
Log: Initialize variable to make gcc happy.
http://code.google.com/p/v8/issues/detail?id=727

http://code.google.com/p/v8/source/detail?r=4777

Modified:
 /branches/bleeding_edge/src/objects.cc

=======================================
--- /branches/bleeding_edge/src/objects.cc      Fri May 28 04:54:58 2010
+++ /branches/bleeding_edge/src/objects.cc      Wed Jun  2 01:17:19 2010
@@ -2958,7 +2958,7 @@

   // Make the lookup and include prototypes.
   int accessor_index = is_getter ? kGetterIndex : kSetterIndex;
-  uint32_t index;
+  uint32_t index = 0;  // Initialize index to make compiler happy.
   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

Reply via email to