summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-07-06 23:18:43 +0000
committerwtc%netscape.com <devnull@localhost>1999-07-06 23:18:43 +0000
commit287a25971bba850b31fd267ee5fffa58e335c1ea (patch)
tree9fcf6323baa1371457d745566fcdc02cb495ef9a
parent6f76beadbf9ffab418558f901f6c4f8e7856ad23 (diff)
downloadnspr-hg-287a25971bba850b31fd267ee5fffa58e335c1ea.tar.gz
Fixed an unused-variable compiler warning. Thanks to
Seth Spitzer <sspitzer@netscape.com> for the fix.
-rw-r--r--pr/src/pthreads/ptthread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c
index 54bfa29e..8b8c48f2 100644
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -1213,8 +1213,6 @@ static void PR_SuspendSet(PRThread *thred)
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));
@@ -1236,7 +1234,7 @@ static void PR_SuspendTest(PRThread *thred)
#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