Add static_cast<void*> to pointer arg for %p in format string, to to fix GCC warning. No Bug #, r=jorendorff
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 11 Aug 2011 15:19:56 -0700
changeset 74283 252957ac3ace28d6e0fbffdc4c87d78c2609d7bc
parent 74282 84a4857051734340369fb0da124d75023eaaaf7c
child 74284 059713859dcc43dffa1e4f107de6d8830c971aaa
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersjorendorff
milestone8.0a1
Add static_cast<void*> to pointer arg for %p in format string, to to fix GCC warning. No Bug #, r=jorendorff
js/src/methodjit/MonoIC.cpp
--- a/js/src/methodjit/MonoIC.cpp
+++ b/js/src/methodjit/MonoIC.cpp
@@ -721,17 +721,18 @@ class CallCompiler : public BaseCompiler
 
         ic.fastGuardedObject = obj;
 
         repatch.repatch(ic.funGuard, obj);
         repatch.relink(ic.funGuard.jumpAtOffset(ic.hotJumpOffset),
                        JSC::CodeLocationLabel(jit->fastEntry));
 
         JaegerSpew(JSpew_PICs, "patched CALL path %p (obj: %p)\n",
-                   ic.funGuard.executableAddress(), ic.fastGuardedObject);
+                   ic.funGuard.executableAddress(),
+                   static_cast<void*>(ic.fastGuardedObject));
 
         return true;
     }
 
     bool generateStubForClosures(JITScript *from, JSObject *obj)
     {
         JS_ASSERT(ic.frameSize.isStatic());