summaryrefslogtreecommitdiffstats
path: root/src/v8/0011-Fix-warnings.patch
blob: 40261df3583117c5bd71d901da4f19c2ebefec7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 6643bd52181d51570bb1f9806dd06ff3b66c4251 Mon Sep 17 00:00:00 2001
From: Aaron Kennedy <aaron.kennedy@nokia.com>
Date: Fri, 27 May 2011 13:04:15 +1000
Subject: [PATCH 11/13] Fix warnings

---
 include/v8.h |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/v8.h b/include/v8.h
index d995e54..a7b5c8a 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2579,7 +2579,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>();
   }
 
@@ -3946,13 +3946,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
-- 
1.7.4.1