Commit 8f5645a2 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

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.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/99553005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18456 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 25f220ee
......@@ -6525,7 +6525,7 @@ MUST_USE_RESULT static MaybeObject* ConvertCase(
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()),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment