Bug 678781 - warnings-as-errors - format '%p' expects type 'void*', but argument 4 has type 'JSScript*' in InvokeHelpers.cpp:880:80, r=billm
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 14 Aug 2011 15:34:22 -0700
changeset 75288 24990ea9c59e4719c0e13529a76038cb1fd0b362
parent 75287 c0b90308926a9107a3a9732e696d7a0e554a6e9e
child 75289 3ab9371af845f93d5f6fef08ed6176bbea035fc7
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersbillm
bugs678781
milestone8.0a1
Bug 678781 - warnings-as-errors - format '%p' expects type 'void*', but argument 4 has type 'JSScript*' in InvokeHelpers.cpp:880:80, r=billm
js/src/methodjit/InvokeHelpers.cpp
--- a/js/src/methodjit/InvokeHelpers.cpp
+++ b/js/src/methodjit/InvokeHelpers.cpp
@@ -872,17 +872,18 @@ ResetTraceHintAt(JSScript *script, js::m
     if (index >= jit->nTraceICs)
         return;
     ic::TraceICInfo &ic = jit->traceICs()[index];
     if (!ic.initialized)
         return;
     
     JS_ASSERT(ic.jumpTargetPC == pc);
 
-    JaegerSpew(JSpew_PICs, "Enabling trace IC %u in script %p\n", index, script);
+    JaegerSpew(JSpew_PICs, "Enabling trace IC %u in script %p\n", index,
+               static_cast<void*>(script));
 
     Repatcher repatcher(jit);
 
     UpdateTraceHintSingle(repatcher, ic.traceHint, ic.stubEntry);
 
     if (ic.hasSlowTraceHint)
         UpdateTraceHintSingle(repatcher, ic.slowTraceHint, ic.stubEntry);