Removed unused variable warnings by the Macintosh compiler. The patch

is contributed by Kathleen Brade <brade@netscape.com>.
This commit is contained in:
wtc%netscape.com 1999-02-04 15:53:49 +00:00
parent 6ef7d8ee8a
commit 4259af374f
2 changed files with 12 additions and 1 deletions

View File

@ -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.

View File

@ -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;