Fixed an unused-variable compiler warning. Thanks to
authorwtc%netscape.com
Tue, 06 Jul 1999 23:18:43 +0000
changeset 689 e670e5a272279d5ee4dd8aab4cad6dfdde503112
parent 679 0771d86251a0f46413d3ef021b423065f77421eb
child 690 191dcb7494cec927ce27165f14a25d25ddf60f94
push idunknown
push userunknown
push dateunknown
Fixed an unused-variable compiler warning. Thanks to Seth Spitzer <sspitzer@netscape.com> for the fix.
pr/src/pthreads/ptthread.c
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -1208,18 +1208,16 @@ static void PR_SuspendSet(PRThread *thre
 #else
     rv = pthread_kill (thred->id, SIGUSR2);
 #endif
     PR_ASSERT(0 == rv);
 }
 
 static void PR_SuspendTest(PRThread *thred)
 {
-    PRIntn rv;
-
     PR_LOG(_pr_gc_lm, PR_LOG_ALWAYS, 
 	   ("Begin PR_SuspendTest thred %X thread id = %X\n", thred, thred->id));
 
 
     /*
      * Wait for the thread to be really suspended. This happens when the
      * suspend signal handler stores the stack pointer and sets the state
      * to suspended. 
@@ -1231,17 +1229,17 @@ static void PR_SuspendTest(PRThread *thr
     {
 	    pthread_cond_timedwait(
 	        &thred->suspendResumeCV, &thred->suspendResumeMutex, &onemillisec);
 	}
 	pthread_mutex_unlock(&thred->suspendResumeMutex);
 #else
     while ((thred->suspend & PT_THREAD_SUSPENDED) == 0)
     {
-		rv = sigtimedwait(&sigwait_set, NULL, &onemillisec);
+		PRIntn rv = sigtimedwait(&sigwait_set, NULL, &onemillisec);
     	PR_ASSERT(-1 == rv);
 	}
 #endif
 
     PR_LOG(_pr_gc_lm, PR_LOG_ALWAYS,
         ("End PR_SuspendTest thred %X tid %X\n", thred, thred->id));
 }  /* PR_SuspendTest */