[devel] Changed PNG_UNUSED to "(void)param;"

This commit is contained in:
Glenn Randers-Pehrson 2011-01-30 11:55:35 -06:00
parent cbbe9a5c01
commit 4c0eaee5c6
3 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.5.1rc02 - January 29, 2011
Libpng 1.5.1rc02 - January 30, 2011
This is not intended to be a public release. It will be replaced
within a few weeks by a public version or by another test version.
@ -115,13 +115,13 @@ Version 1.5.1beta11 [January 28, 2011]
architectures.
Added transform tests to pngvalid and simplified the arguments.
Version 1.5.1rc01 [January 29, 2011]
Version 1.5.1rc01 [January 30, 2011]
No changes.
Version 1.5.1rc02 [January 29, 2011]
Version 1.5.1rc02 [January 30, 2011]
Added a request in the manual that applications do not use "png_" or
"PNG_" to begin any of their own symbols.
Changed PNG_UNUSED to "(void)param;"
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit

View File

@ -3231,12 +3231,13 @@ Version 1.5.1beta11 [January 28, 2011]
architectures.
Added transform tests to pngvalid and simplified the arguments.
Version 1.5.1rc01 [January 29, 2011]
Version 1.5.1rc01 [January 30, 2011]
No changes.
Version 1.5.1rc02 [January 29, 2011]
Version 1.5.1rc02 [January 30, 2011]
Added a request in the manual that applications do not use "png_" or
"PNG_" to begin any of their own symbols.
Changed PNG_UNUSED to "(void)param;"
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -89,7 +89,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
* the terminating semicolon. Also note that some of these might not
* work when "param" is a structure, but that is never the case in libpng.
*/
#define PNG_UNUSED(param) {if(param){}}
#define PNG_UNUSED(param) (void)param;
#if 0 /* Possibilities discussed on png-mng-implement, starting 27 Jan 2011 */
#ifndef PNG_UNUSED /* "best" but complex */
@ -98,6 +98,7 @@ typedef PNG_CONST png_uint_16p FAR * png_const_uint_16pp;
#else
# define PNG_UNUSED(param)
#endif
#define PNG_UNUSED(param) {if(param){}}
#define PNG_UNUSED(param) param = param; /* What we used before */
#define PNG_UNUSED(param) {(void)param;} /* Visual C complains */
#define PNG_UNUSED(param) if(param); /* gcc-4.2 complains */