Reviewers: Sven,

Message:
PTAL.

We don't export the USE(T) template, so d8.cc has to roll its own solution.

Description:
Silence GCC-4.5.3 warning about unused result in d8.cc


TEST=GCC 4.5.3 successfully compiles d8.cc even with -Werror enabled.


Please review this at http://codereview.chromium.org/8296018/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/d8.cc


Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index a516576fafdaae0dec03141a6c84c67afb477e56..64ada2c2456dc4d331449b9962e95b45bc7b1a57 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -178,7 +178,8 @@ bool Shell::ExecuteString(Handle<String> source,
         // If all went well and the result wasn't undefined then print
         // the returned value.
         v8::String::Utf8Value str(result);
-        fwrite(*str, sizeof(**str), str.length(), stdout);
+        size_t count = fwrite(*str, sizeof(**str), str.length(), stdout);
+        (void) count;  // Silence GCC-4.5.x "unused result" warning.
         printf("\n");
       }
       return true;


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to