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)
|
static void debug(const char * const str)
|
||||||
{
|
{
|
||||||
void * kluge;
|
#ifndef DEBUG
|
||||||
|
(void)str;
|
||||||
kluge = (void *) str; /* So 'str' param _is_ used when DEBUG is off;
|
#else
|
||||||
thus avoiding compiler warnings */
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
fprintf(stderr, "DEBUG: %s\n", str);
|
fprintf(stderr, "DEBUG: %s\n", str);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue