Update of /cvsroot/tuxpaint/tuxpaint/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29978/src

Modified Files:
        tuxpaint.c 
Log Message:
cast to void is enough to suppress the warning

Index: tuxpaint.c
===================================================================
RCS file: /cvsroot/tuxpaint/tuxpaint/src/tuxpaint.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -d -r1.178 -r1.179
--- tuxpaint.c  24 Nov 2004 06:56:24 -0000      1.178
+++ tuxpaint.c  24 Nov 2004 17:16:31 -0000      1.179
@@ -7340,12 +7340,9 @@
 
 static void debug(const char * const str)
 {
-  void * kluge;
-
-  kluge = (void *) str;   /* So 'str' param _is_ used when DEBUG is off;
-                            thus avoiding compiler warnings */
-
-#ifdef DEBUG
+#ifndef DEBUG
+  (void)str;
+#else
   fprintf(stderr, "DEBUG: %s\n", str);
   fflush(stderr);
 #endif

_______________________________________________
Tuxpaint-commits mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-commits

Reply via email to