diff options
author | wtc <devnull@localhost> | 1998-04-13 22:55:27 +0000 |
---|---|---|
committer | wtc <devnull@localhost> | 1998-04-13 22:55:27 +0000 |
commit | 3decd3404b8edbb839062262bfecbe0b542f4b59 (patch) | |
tree | e026ffdeb43787f56231002741732cdc549bad43 | |
parent | de97382596707e6d4b855357f156c080a1a6e950 (diff) | |
download | nspr-hg-3decd3404b8edbb839062262bfecbe0b542f4b59.tar.gz |
Got rid of compiler warnings. We acknowledge the help of Nathan
Torkington <gnat@frii.com>.
-rw-r--r-- | pr/src/threads/combined/pruthr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pr/src/threads/combined/pruthr.c b/pr/src/threads/combined/pruthr.c index 7baa6534..5a2174c6 100644 --- a/pr/src/threads/combined/pruthr.c +++ b/pr/src/threads/combined/pruthr.c @@ -61,6 +61,7 @@ static void _PR_DecrActiveThreadCount(PRThread *thread); static PRThread *_PR_AttachThread(PRThreadType, PRThreadPriority, PRThreadStack *); static void _PR_InitializeNativeStack(PRThreadStack *ts); static void _PR_InitializeRecycledThread(PRThread *thread); +static void _PR_UserRunThread(void); void _PR_InitThreads(PRThreadType type, PRThreadPriority priority, PRUintn maxPTDs) @@ -435,7 +436,7 @@ void _PR_NativeRunThread(void *arg) } } -void _PR_UserRunThread(void) +static void _PR_UserRunThread(void) { PRThread *thread = _PR_MD_CURRENT_THREAD(); PRIntn is; @@ -722,6 +723,7 @@ static void _PR_Resume(PRThread *thread) } +#if !defined(_PR_LOCAL_THREADS_ONLY) && defined(XP_UNIX) static PRThread *get_thread(_PRCPU *cpu) { PRThread *thread; @@ -779,6 +781,7 @@ static PRThread *get_thread(_PRCPU *cpu) _PR_RUNQ_UNLOCK(cpu); return(thread); } +#endif /* !defined(_PR_LOCAL_THREADS_ONLY) && defined(XP_UNIX) */ /* ** Schedule this native thread by finding the highest priority nspr @@ -1598,7 +1601,6 @@ PR_IMPLEMENT(PRStatus) PR_EnumerateThreads(PREnumerator func, void *arg) { PRCList *qp, *qp_next; PRIntn i = 0; - PRThread *me = _PR_MD_CURRENT_THREAD(); PRStatus rv = PR_SUCCESS; PRThread* t; |