зеркало из https://github.com/mozilla/gecko-dev.git
fix warnings
This commit is contained in:
Родитель
b8ff04d359
Коммит
f1a8a3d9a8
|
@ -411,9 +411,10 @@ static void PrintObjectBasics(JSObject* obj)
|
|||
{
|
||||
if(OBJ_IS_NATIVE(obj))
|
||||
printf("%#x 'native' <%s>",
|
||||
obj, ((JSClass*)(obj->slots[JSSLOT_CLASS]-1))->name);
|
||||
(unsigned int) obj,
|
||||
((JSClass*)(obj->slots[JSSLOT_CLASS]-1))->name);
|
||||
else
|
||||
printf("%#x 'host'", obj);
|
||||
printf("%#x 'host'", (unsigned int) obj);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -772,14 +772,6 @@ WrappedNative_Finalize(JSContext *cx, JSObject *obj)
|
|||
if(!wrapper || !wrapper->IsValid())
|
||||
return;
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
static const int FREQUENCY = 50;
|
||||
static int hit_count = 0;
|
||||
//if(!(++hit_count % FREQUENCY))
|
||||
// NS_ASSERTION(0, "ignore me and see me crash!");
|
||||
}
|
||||
#endif
|
||||
// Defer this push until we know we have a valid wrapper to work with.
|
||||
// This call can *startup* XPConnect after it has been shutdown!
|
||||
AUTO_PUSH_JSCONTEXT(cx);
|
||||
|
|
Загрузка…
Ссылка в новой задаче