From 5bd1e54d9a2d9fb3d6a3ed4c28168564e6fac47c Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Wed, 24 Nov 2004 17:16:31 +0000 Subject: [PATCH] cast to void is enough to suppress the warning --- src/tuxpaint.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index f8c14b468..0fb00cbf6 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -7340,12 +7340,9 @@ static void putpixel(SDL_Surface * surface, int x, int y, Uint32 pixel) 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