Bug 425747: silencing warnings in jsdtrace.c, r/a=shaver
git-svn-id: svn://10.0.0.236/trunk@248772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3008e9a515
commit
b1de5b92da
@ -79,7 +79,7 @@ jsdtrace_linenumber(JSContext *cx, JSStackFrame *fp)
|
||||
while (fp && fp->script == NULL)
|
||||
fp = fp->down;
|
||||
return (fp && fp->regs)
|
||||
? js_PCToLineNumber(cx, fp->script, fp->regs->pc)
|
||||
? (int) js_PCToLineNumber(cx, fp->script, fp->regs->pc)
|
||||
: -1;
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ jsdtrace_jsvaltovoid(JSContext *cx, jsval argval)
|
||||
switch (type) {
|
||||
case JSTYPE_NULL:
|
||||
case JSTYPE_VOID:
|
||||
return JS_TYPE_STR(type);
|
||||
return (void *)JS_TYPE_STR(type);
|
||||
|
||||
case JSTYPE_BOOLEAN:
|
||||
return (void *)JSVAL_TO_BOOLEAN(argval);
|
||||
@ -165,6 +165,8 @@ jsdtrace_function_name(JSContext *cx, JSStackFrame *fp, JSFunction *fun)
|
||||
* decompiler.
|
||||
*/
|
||||
break;
|
||||
default: /* FIXME bug 425744: need to consider other CALL cases. */
|
||||
break;
|
||||
}
|
||||
|
||||
switch ((JSOp) *pc) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user