Revision: 10405
Author: [email protected]
Date: Mon Jan 16 03:04:58 2012
Log: Fix GCC4.7 compilation warning introduced in r10400
Add some usages for string1 and string2 to avoid "assigned
but not used" warning.
Review URL: http://codereview.chromium.org/9163003
Patch from Yury Semikhatsky <[email protected]>.
http://code.google.com/p/v8/source/detail?r=10405
Modified:
/branches/bleeding_edge/test/cctest/test-api.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-api.cc Mon Jan 16 01:40:04 2012
+++ /branches/bleeding_edge/test/cctest/test-api.cc Mon Jan 16 03:04:58 2012
@@ -13725,6 +13725,10 @@
TestResource* resource2 = new TestResource(two_byte_string);
v8::Local<v8::String> string2 = v8::String::NewExternal(resource2);
+ // We need to add usages for string1 and string2 to avoid warnings in
GCC 4.7
+ CHECK(string1->IsExternal());
+ CHECK(string2->IsExternal());
+
VisitorImpl visitor(resource1, resource2);
v8::V8::VisitExternalResources(&visitor);
visitor.CheckVisitedResources();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev