[devel] Trying a different PNG_UNUSED macro.

This commit is contained in:
Glenn Randers-Pehrson
2011-01-27 09:37:34 -06:00
parent 0012e9cd54
commit 2774238722
5 changed files with 29 additions and 17 deletions

View File

@@ -89,7 +89,13 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
* the terminating semicolon.
*/
#ifndef PNG_UNUSED
# define PNG_UNUSED(param) param = param;
/* Different possiblities being discussed on png-mng-implement, Jan 2011 */
/* # define PNG_UNUSED(param) param = param; */
/* # define PNG_UNUSED(param) if(param); */
/* # define PNG_UNUSED(param) if(param){} */
/* # define PNG_UNUSED(param) {if(param){}} */
/* # define PNG_UNUSED(param) {(void)param;} */
# define PNG_UNUSED(param) ((void)(param ? 0 : 0));
#endif
/* Just a little check that someone hasn't tried to define something