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-04-12 16:57:29 +0200 |
commit | 12cdefad03997ed444c1192f2c9e0500314a16d4 (patch) | |
tree | 283868355d23b2fb246b5588778e532e5877cab0 | |
parent | d04e09695759e1401d4e6d8f3f9d7194fc105e28 (diff) |
[V8] Fix warnings
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Change-Id: I64e793e550cd5d0740e156a437fc3badccfb67ba
Reviewed-by: Lars Knoll <lars.knoll@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 eadfeef..ce62c69 100644 --- a/src/3rdparty/v8/include/v8.h +++ b/src/3rdparty/v8/include/v8.h @@ -2720,7 +2720,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>(); } @@ -3211,7 +3211,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>) {} }; @@ -3221,8 +3221,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) {} }; @@ -4219,6 +4219,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; }; }; @@ -4428,13 +4431,13 @@ class Internals { return I::ReadField<T>(embedder_data, value_offset); } - V8_INLINE(static bool CanCastToHeapObject(void* o)) { return false; } - V8_INLINE(static bool CanCastToHeapObject(Context* o)) { return true; } - V8_INLINE(static bool CanCastToHeapObject(String* o)) { return true; } - V8_INLINE(static bool CanCastToHeapObject(Object* o)) { return true; } - V8_INLINE(static bool CanCastToHeapObject(Message* o)) { return true; } - V8_INLINE(static bool CanCastToHeapObject(StackTrace* o)) { return true; } - V8_INLINE(static bool CanCastToHeapObject(StackFrame* o)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(void*)) { return false; } + V8_INLINE(static bool CanCastToHeapObject(Context*)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(String*)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(Object*)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(Message*)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(StackTrace*)) { return true; } + V8_INLINE(static bool CanCastToHeapObject(StackFrame*)) { return true; } }; } // namespace internal |