diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-05-27 13:04:15 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-09 13:06:33 +0100 |
commit | b4322b70136ed56b8f3201f64387293cfb6dfce4 (patch) | |
tree | 1005ce208847ca03e02a30f9055e3bea99137578 | |
parent | cebc09e67f400b3814e9a9ea7dfc65ae2c535bfa (diff) | |
download | qtjsbackend-b4322b70136ed56b8f3201f64387293cfb6dfce4.tar.gz |
[V8] Fix warnings
Change-Id: I1a910d5518964ceb9c2f41b56ede56027d8edc2e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r-- | src/3rdparty/v8/include/v8.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/3rdparty/v8/include/v8.h b/src/3rdparty/v8/include/v8.h index f95e8b9..6e3cc7a 100644 --- a/src/3rdparty/v8/include/v8.h +++ b/src/3rdparty/v8/include/v8.h @@ -2682,7 +2682,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>(); } @@ -3147,7 +3147,7 @@ typedef void (*JitCodeEventHandler)(const JitCodeEvent* event); class V8EXPORT ExternalResourceVisitor { // NOLINT public: virtual ~ExternalResourceVisitor() {} - virtual void VisitExternalString(Handle<String> string) {} + virtual void VisitExternalString(Handle<String>) {} }; @@ -3157,8 +3157,8 @@ class V8EXPORT ExternalResourceVisitor { // NOLINT class V8EXPORT PersistentHandleVisitor { // NOLINT public: virtual ~PersistentHandleVisitor() {} - virtual void VisitPersistentHandle(Persistent<Value> value, - uint16_t class_id) {} + virtual void VisitPersistentHandle(Persistent<Value>, + uint16_t) {} }; @@ -4114,6 +4114,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; }; }; @@ -4314,13 +4317,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 |