From 9bef23e66b311d6646a12e807cd218933c773f69 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 26 Jun 1999 04:17:58 +0000 Subject: [PATCH] fix warnings --- xpcom/threads/nsAutoLock.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xpcom/threads/nsAutoLock.h b/xpcom/threads/nsAutoLock.h index 8d223b7bbf2b..a7330e66f60e 100644 --- a/xpcom/threads/nsAutoLock.h +++ b/xpcom/threads/nsAutoLock.h @@ -138,7 +138,8 @@ public: } ~nsAutoMonitor() { - PRStatus status = PR_ExitMonitor(mMonitor); + PRStatus status; + status = PR_ExitMonitor(mMonitor); NS_ASSERTION(status == PR_SUCCESS, "PR_CExitMonitor failed"); } @@ -194,7 +195,8 @@ public: } ~nsAutoCMonitor() { - PRStatus status = PR_CExitMonitor(mLockObject); + PRStatus status; + status = PR_CExitMonitor(mLockObject); NS_ASSERTION(status == PR_SUCCESS, "PR_CExitMonitor failed"); }