cast to void is enough to suppress the warning

This commit is contained in:
Albert Cahalan 2004-11-24 17:16:31 +00:00
parent b7d549518e
commit 5bd1e54d9a

View file

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