[devel] Added the private PNG_UNUSED() macro definition in pngpriv.h.

(adapted from the UNUSED() macro in pngvalid.c by John Bowler)
This commit is contained in:
Glenn Randers-Pehrson
2010-12-04 20:41:36 -06:00
parent 38ef3a592c
commit d546f4399f
11 changed files with 37 additions and 27 deletions

View File

@@ -322,7 +322,7 @@ png_default_error,(png_structp png_ptr, png_const_charp error_message),
}
#endif
#ifndef PNG_CONSOLE_IO_SUPPORTED
error_message = error_message; /* Make compiler happy */
PNG_UNUSED(error_message) /* Make compiler happy */
#endif
png_longjmp(png_ptr, 1);
}
@@ -394,9 +394,9 @@ png_default_warning(png_structp png_ptr, png_const_charp warning_message)
fprintf(stderr, PNG_STRING_NEWLINE);
}
#else
warning_message = warning_message; /* Make compiler happy */
PNG_UNUSED(warning_message) /* Make compiler happy */
#endif
png_ptr = png_ptr; /* Make compiler happy */
PNG_UNUSED(png_ptr) /* Make compiler happy */
}
#endif /* PNG_WARNINGS_SUPPORTED */