Bug 603825 - Fix a bunch of warnings. r=jwalden.

This commit is contained in:
Nicholas Nethercote 2010-10-13 16:49:53 -07:00
Родитель cbe62cd2cb
Коммит 6a9ab1077e
4 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -448,7 +448,7 @@ ComputeGlobalThis(JSContext *cx, Value *argv)
namespace js {
bool
void
ReportIncompatibleMethod(JSContext *cx, Value *vp, Class *clasp)
{
Value &thisv = vp[1];
@ -486,7 +486,6 @@ ReportIncompatibleMethod(JSContext *cx, Value *vp, Class *clasp)
clasp->name, JS_GetFunctionName(fun),
name);
}
return false;
}
bool

Просмотреть файл

@ -805,7 +805,7 @@ namespace js {
* Report an error that the this value passed as |this| in the given arguments
* vector is not compatible with the specified class.
*/
bool
void
ReportIncompatibleMethod(JSContext *cx, Value *vp, Class *clasp);
/*

Просмотреть файл

@ -633,7 +633,8 @@ GetPrimitiveThis(JSContext *cx, Value *vp, T *v)
return true;
}
return ReportIncompatibleMethod(cx, vp, Behavior::getClass());
ReportIncompatibleMethod(cx, vp, Behavior::getClass());
return false;
}
/*

Просмотреть файл

@ -2822,7 +2822,9 @@ mjit::Compiler::jsop_callprop_str(JSAtom *atom)
frame.shift(-1);
/* 4) Test if the function can take a primitive. */
#ifdef DEBUG
FrameEntry *funFe = frame.peek(-2);
#endif
JS_ASSERT(!funFe->isTypeKnown());
/*