fix warnings from fix to bug 61369

This commit is contained in:
jband%netscape.com 2000-12-06 19:40:56 +00:00
Родитель 4a47015644
Коммит 469d258cc8
2 изменённых файлов: 11 добавлений и 11 удалений

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

@ -159,7 +159,7 @@ public:
PR_AtomicIncrement(&gNum);
}
~nsStressRunner() {
virtual ~nsStressRunner() {
NS_ASSERTION(mWasRun, "never run!");
}

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

@ -63,16 +63,16 @@ nsThread::nsThread()
}
#endif /* PR_LOGGING */
// enforce matching of constants to enums in prthread.h
NS_ASSERTION(nsIThread::PRIORITY_LOW == PR_PRIORITY_LOW &&
nsIThread::PRIORITY_NORMAL == PRIORITY_NORMAL &&
nsIThread::PRIORITY_HIGH == PRIORITY_HIGH &&
nsIThread::PRIORITY_URGENT == PRIORITY_URGENT &&
nsIThread::SCOPE_LOCAL == PR_LOCAL_THREAD &&
nsIThread::SCOPE_GLOBAL == PR_GLOBAL_THREAD &&
nsIThread::STATE_JOINABLE == PR_JOINABLE_THREAD &&
nsIThread::STATE_UNJOINABLE == PR_UNJOINABLE_THREAD,
"Bad constant in nsIThread!");
// enforce matching of constants to enums in prthread.h
NS_ASSERTION(int(nsIThread::PRIORITY_LOW) == int(PR_PRIORITY_LOW) &&
int(nsIThread::PRIORITY_NORMAL) == int(PRIORITY_NORMAL) &&
int(nsIThread::PRIORITY_HIGH) == int(PRIORITY_HIGH) &&
int(nsIThread::PRIORITY_URGENT) == int(PRIORITY_URGENT) &&
int(nsIThread::SCOPE_LOCAL) == int(PR_LOCAL_THREAD) &&
int(nsIThread::SCOPE_GLOBAL) == int(PR_GLOBAL_THREAD) &&
int(nsIThread::STATE_JOINABLE) == int(PR_JOINABLE_THREAD) &&
int(nsIThread::STATE_UNJOINABLE) == int(PR_UNJOINABLE_THREAD),
"Bad constant in nsIThread!");
}
nsThread::~nsThread()