Revision: 18456
Author:   [email protected]
Date:     Sat Jan  4 18:20:50 2014 UTC
Log:      silence has_changed_character may be used uninitialized warning

Some slightly older versions of gcc aren't clever enough to figure out
that this variable won't be used if the return value from the function
that initializes it is false.  Tested with gcc 4.5.1.

[email protected]

Review URL: https://codereview.chromium.org/99553005
http://code.google.com/p/v8/source/detail?r=18456

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

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Fri Jan  3 11:19:13 2014 UTC
+++ /branches/bleeding_edge/src/runtime.cc      Sat Jan  4 18:20:50 2014 UTC
@@ -6525,7 +6525,7 @@
       if (!maybe_o->ToObject(&o)) return maybe_o;
     }
     SeqOneByteString* result = SeqOneByteString::cast(o);
-    bool has_changed_character;
+    bool has_changed_character = false;
     bool is_ascii = FastAsciiConvert<Converter>(
         reinterpret_cast<char*>(result->GetChars()),
         reinterpret_cast<char*>(SeqOneByteString::cast(s)->GetChars()),

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to