cast to void is enough to suppress the warning
This commit is contained in:
parent
b7d549518e
commit
5bd1e54d9a
1 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue