Add static_cast<void*> to pointer arg for %p in format string, to to fix GCC warning. No Bug #, r=jorendorff
Add static_cast<void*> to pointer arg for %p in format string, to to fix GCC warning. No Bug #, r=jorendorff
--- 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());