From 2a5cf85d7fd7912e516138db03e4cda47cc2a1ab Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 27 May 2011 13:04:15 +1000 Subject: [PATCH 07/16] Fix warnings --- include/v8.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/v8.h b/include/v8.h index 2bc0ed1..99f4b9a 100644 --- a/include/v8.h +++ b/include/v8.h @@ -2416,7 +2416,7 @@ class V8EXPORT Extension { // NOLINT const char** deps = 0); virtual ~Extension() { } virtual v8::Handle - GetNativeFunction(v8::Handle name) { + GetNativeFunction(v8::Handle) { return v8::Handle(); } @@ -3722,13 +3722,13 @@ class Internals { return *reinterpret_cast(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 -- 1.7.4.4