diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-05-27 13:04:15 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-13 09:57:26 +0200 |
commit | 18da616da992ceb83f9e8a67cf692843e1e4aaa2 (patch) | |
tree | 6d7f4fdfa43c0c3ab3761007c7d5f90fdc29a009 | |
parent | 26fdca1331b327a41bafc183a80c8db7899e7e7f (diff) | |
download | qtjsbackend-18da616da992ceb83f9e8a67cf692843e1e4aaa2.tar.gz |
[V8] Fix warnings
Change-Id: I0e11d9ae92d22a7af118a5b532284411a0e72775
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
-rw-r--r-- | src/3rdparty/v8/include/v8.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/3rdparty/v8/include/v8.h b/src/3rdparty/v8/include/v8.h index 5be96f6..3416cd4 100644 --- a/src/3rdparty/v8/include/v8.h +++ b/src/3rdparty/v8/include/v8.h @@ -2616,7 +2616,7 @@ class V8EXPORT Extension { // NOLINT int source_length = -1); virtual ~Extension() { } virtual v8::Handle<v8::FunctionTemplate> - GetNativeFunction(v8::Handle<v8::String> name) { + GetNativeFunction(v8::Handle<v8::String>) { return v8::Handle<v8::FunctionTemplate>(); } @@ -3007,7 +3007,7 @@ typedef uintptr_t (*ReturnAddressLocationResolver)( class V8EXPORT ExternalResourceVisitor { // NOLINT public: virtual ~ExternalResourceVisitor() {} - virtual void VisitExternalString(Handle<String> string) {} + virtual void VisitExternalString(Handle<String>) {} }; @@ -3900,6 +3900,9 @@ class V8EXPORT OutputStream { // NOLINT * will not be called in case writing was aborted. */ virtual WriteResult WriteHeapStatsChunk(HeapStatsUpdate* data, int count) { + (void)data; + (void)count; + return kAbort; }; }; @@ -4098,13 +4101,13 @@ class Internals { return *reinterpret_cast<T*>(addr); } - static inline bool CanCastToHeapObject(void* o) { return false; } - static inline bool CanCastToHeapObject(Context* o) { return true; } - static inline bool CanCastToHeapObject(String* o) { return true; } - static inline bool CanCastToHeapObject(Object* o) { return true; } - static inline bool CanCastToHeapObject(Message* o) { return true; } - static inline bool CanCastToHeapObject(StackTrace* o) { return true; } - static inline bool CanCastToHeapObject(StackFrame* o) { return true; } + static inline bool CanCastToHeapObject(void*) { return false; } + static inline bool CanCastToHeapObject(Context*) { return true; } + static inline bool CanCastToHeapObject(String*) { return true; } + static inline bool CanCastToHeapObject(Object*) { return true; } + static inline bool CanCastToHeapObject(Message*) { return true; } + static inline bool CanCastToHeapObject(StackTrace*) { return true; } + static inline bool CanCastToHeapObject(StackFrame*) { return true; } }; } // namespace internal |