The static variable 'tracefile' is only used when WIN16 is defined,
authorwtc
Tue, 07 Apr 1998 22:40:39 +0000
changeset 7 402a53d4b6f71d4916f2da06e5debb999eb5c144
parent 6 8eed6d72cb12f47dc407f43931ee6f2c5d22d82a
child 8 0ee74f5fc4479228538301a8e9fddce82cb72450
push idunknown
push userunknown
push dateunknown
The static variable 'tracefile' is only used when WIN16 is defined, so put it inside #ifdef to eliminate unused variable compiler warning on other platforms.
lib/msgc/src/prgcapi.c
--- a/lib/msgc/src/prgcapi.c
+++ b/lib/msgc/src/prgcapi.c
@@ -245,17 +245,19 @@ PR_IMPLEMENT(void) PR_GetEndFinalizeHook
     *hook = _pr_endFinalizeHook;
     *arg = _pr_endFinalizeHookArg;
     UNLOCK_GC();
 }
 
 #ifdef DEBUG
 #include "prprf.h"
 
+#if defined(WIN16)
 static FILE *tracefile = 0;
+#endif
 
 PR_IMPLEMENT(void) GCTrace(char *fmt, ...)
 {	
     va_list ap;
     char buf[400];
 
     va_start(ap, fmt);
     PR_vsnprintf(buf, sizeof(buf), fmt, ap);