diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-12-04 20:41:36 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2010-12-04 20:41:36 -0600 |
commit | d546f4399fb03ef5332ad01deb165f785a0141e4 (patch) | |
tree | 9d9982cbf336f2e7bb1de0a42c3d45553932ee58 /pngerror.c | |
parent | 38ef3a592c80e45b617c490ecd2b228447a94230 (diff) | |
download | libpng-d546f4399fb03ef5332ad01deb165f785a0141e4.tar.gz |
[devel] Added the private PNG_UNUSED() macro definition in pngpriv.h.
(adapted from the UNUSED() macro in pngvalid.c by John Bowler)
Diffstat (limited to 'pngerror.c')
-rw-r--r-- | pngerror.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pngerror.c b/pngerror.c index 3fc724218..dac371d43 100644 --- a/pngerror.c +++ b/pngerror.c @@ -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 */ |