[libpng12] Quiet set-but-not-used warnings in pngset.c

This commit is contained in:
Glenn Randers-Pehrson 2014-01-22 17:27:26 -06:00
parent 1c4cae402b
commit 6c44742e74
3 changed files with 13 additions and 14 deletions

View File

@ -1,5 +1,5 @@
Libpng 1.2.51beta05 - January 10, 2014
Libpng 1.2.51beta05 - January 22, 2014
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.
@ -60,7 +60,8 @@ version 1.2.51beta03 [January 1, 2014]
version 1.2.51beta04 [January 10, 2014]
Removed potentially misleading warning from png_check_IHDR().
version 1.2.51beta05 [January 10, 2014]
version 1.2.51beta05 [January 22, 2014]
Quiet set-but-not-used warnings in pngset.c
(subscription required; visit
https://lists.sourceforge.net/lists/listinfo/png-mng-implement

View File

@ -2795,7 +2795,8 @@ version 1.2.51beta03 [January 1, 2014]
version 1.2.51beta04 [January 10, 2014]
Removed potentially misleading warning from png_check_IHDR().
version 1.2.51beta05 [January 10, 2014]
version 1.2.51beta05 [January 22, 2014]
Quiet set-but-not-used warnings in pngset.c
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -1,7 +1,7 @@
/* pngset.c - storage of image information into info struct
*
* Last changed in libpng 1.2.51 [January 10, 2014]
* Last changed in libpng 1.2.51 [January 22, 2014]
* Copyright (c) 1998-2014 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
@ -555,6 +555,7 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
#endif
#ifdef PNG_cHRM_SUPPORTED
# ifdef PNG_FIXED_POINT_SUPPORTED
int_white_x = 31270L;
int_white_y = 32900L;
int_red_x = 64000L;
@ -563,8 +564,12 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
int_green_y = 60000L;
int_blue_x = 15000L;
int_blue_y = 6000L;
png_set_cHRM_fixed(png_ptr, info_ptr,
int_white_x, int_white_y, int_red_x, int_red_y, int_green_x,
int_green_y, int_blue_x, int_blue_y);
# endif
#ifdef PNG_FLOATING_POINT_SUPPORTED
# ifdef PNG_FLOATING_POINT_SUPPORTED
white_x = (float).3127;
white_y = (float).3290;
red_x = (float).64;
@ -573,17 +578,9 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
green_y = (float).60;
blue_x = (float).15;
blue_y = (float).06;
#endif
#ifdef PNG_FIXED_POINT_SUPPORTED
png_set_cHRM_fixed(png_ptr, info_ptr,
int_white_x, int_white_y, int_red_x, int_red_y, int_green_x,
int_green_y, int_blue_x, int_blue_y);
#endif
#ifdef PNG_FLOATING_POINT_SUPPORTED
png_set_cHRM(png_ptr, info_ptr,
white_x, white_y, red_x, red_y, green_x, green_y, blue_x, blue_y);
#endif
# endif
#endif /* cHRM */
}
#endif /* sRGB */