From 4259af374fc614a4050583ba4a64ee25e6bcec70 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Thu, 4 Feb 1999 15:53:49 +0000 Subject: [PATCH] Removed unused variable warnings by the Macintosh compiler. The patch is contributed by Kathleen Brade . --- nsprpub/lib/ds/plevent.c | 4 ++++ nsprpub/pr/src/threads/combined/prucpu.c | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nsprpub/lib/ds/plevent.c b/nsprpub/lib/ds/plevent.c index 1e331a232a02..938c9073cb7c 100644 --- a/nsprpub/lib/ds/plevent.c +++ b/nsprpub/lib/ds/plevent.c @@ -942,6 +942,10 @@ static void _md_CreateEventQueue( PLEventQueue *eventQueue ) */ static void _md_CreateEventQueue( PLEventQueue *eventQueue ) { +#ifdef XP_MAC +#pragma unused(eventQueue) +#endif + /* there's really nothing special to do here, ** the guts of the unix stuff is in the setupnativenotify ** and related functions. diff --git a/nsprpub/pr/src/threads/combined/prucpu.c b/nsprpub/pr/src/threads/combined/prucpu.c index e50e970265fc..c109a9f424c5 100644 --- a/nsprpub/pr/src/threads/combined/prucpu.c +++ b/nsprpub/pr/src/threads/combined/prucpu.c @@ -272,7 +272,14 @@ static void PR_CALLBACK _PR_CPU_Idle(void *_cpu) PR_IMPLEMENT(void) PR_SetConcurrency(PRUintn numCPUs) { -#if !defined(_PR_GLOBAL_THREADS_ONLY) && !defined(_PR_LOCAL_THREADS_ONLY) +#if defined(_PR_GLOBAL_THREADS_ONLY) || defined(_PR_LOCAL_THREADS_ONLY) +#ifdef XP_MAC +#pragma unused(numCPUs) +#endif + + /* do nothing */ + +#else /* combined, MxN thread model */ PRUintn newCPU; PRThread *cpu;