summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaie%kuix.de <devnull@localhost>2008-01-08 15:36:37 +0000
committerkaie%kuix.de <devnull@localhost>2008-01-08 15:36:37 +0000
commit90f9daf8ed14055a04d64afd3e8c558a48be0afb (patch)
treeaca370f1935313788a58514a6be2dfd1c95cc95f
parentc7f6a54e8af84b2e7c8743f91f021d4adfe9d6e2 (diff)
downloadnspr-hg-90f9daf8ed14055a04d64afd3e8c558a48be0afb.tar.gz
Bug 411045, Warning: unused variable 'me' in PR_EnumerateThreads
Patch contributed by Jesse Ruderman r=wtc
-rw-r--r--pr/src/pthreads/ptthread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/pthreads/ptthread.c b/pr/src/pthreads/ptthread.c
index ce319809..4e03fedf 100644
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -1208,7 +1208,12 @@ PR_IMPLEMENT(PRStatus) PR_EnumerateThreads(PREnumerator func, void *arg)
PRIntn count = 0;
PRStatus rv = PR_SUCCESS;
PRThread* thred = pt_book.first;
+
+#if defined(DEBUG) || defined(FORCE_PR_ASSERT)
+#if !defined(_PR_DCETHREADS)
PRThread *me = PR_GetCurrentThread();
+#endif
+#endif
PR_LOG(_pr_gc_lm, PR_LOG_ALWAYS, ("Begin PR_EnumerateThreads\n"));
/*