[libpng16] Added "(void) png_ptr;" where needed in contrib/gregbook to quiet

compiler complaints about unused pointers.
This commit is contained in:
Glenn Randers-Pehrson 2014-06-13 11:53:54 -05:00
parent f36a94207c
commit 151eb95305
3 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,8 @@ Changes since the last public release (1.6.13):
Version 1.6.13beta01 [June 13, 2014]
Quieted -Wsign-compare and -Wclobber compiler warnings in
contrib/pngminus/*.c
Added "(void) png_ptr;" where needed in contrib/gregbook to quiet
compiler complaints about unused pointers.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -4943,6 +4943,8 @@ Version 1.6.12 [June 12, 2014]
Version 1.6.13beta01 [June 13, 2014]
Quieted -Wsign-compare and -Wclobber compiler warnings in
contrib/pngminus/*.c
Added "(void) png_ptr;" where needed in contrib/gregbook to quiet
compiler complaints about unused pointers.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -448,6 +448,8 @@ static void readpng2_end_callback(png_structp png_ptr, png_infop info_ptr)
/* all done */
(void)info_ptr; /* Unused */
return;
}
@ -472,6 +474,8 @@ static void readpng2_warning_handler(png_structp png_ptr, png_const_charp msg)
{
fprintf(stderr, "readpng2 libpng warning: %s\n", msg);
fflush(stderr);
PNG_UNUSED(png_ptr)
(void)png_ptr; /* Unused */
}