[devel] Changed PNG_UNUSED to "(void)param;"
diff --git a/ANNOUNCE b/ANNOUNCE
index 6723c9f..9be49af 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -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 @@
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
diff --git a/CHANGES b/CHANGES
index ec7bab2..10e99ac 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3231,12 +3231,13 @@
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
diff --git a/pngpriv.h b/pngpriv.h
index 70eac1f..d3903a9 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -89,7 +89,7 @@
* 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 @@
#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 */