[libpng12] Quiet set-but-not-used warnings in pngset.c
This commit is contained in:
parent
1c4cae402b
commit
6c44742e74
5
ANNOUNCE
5
ANNOUNCE
@ -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
|
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.
|
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]
|
version 1.2.51beta04 [January 10, 2014]
|
||||||
Removed potentially misleading warning from png_check_IHDR().
|
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
|
(subscription required; visit
|
||||||
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
https://lists.sourceforge.net/lists/listinfo/png-mng-implement
|
||||||
|
3
CHANGES
3
CHANGES
@ -2795,7 +2795,8 @@ version 1.2.51beta03 [January 1, 2014]
|
|||||||
version 1.2.51beta04 [January 10, 2014]
|
version 1.2.51beta04 [January 10, 2014]
|
||||||
Removed potentially misleading warning from png_check_IHDR().
|
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
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
15
pngset.c
15
pngset.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngset.c - storage of image information into info struct
|
/* 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
|
* Copyright (c) 1998-2014 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (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
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_cHRM_SUPPORTED
|
#ifdef PNG_cHRM_SUPPORTED
|
||||||
|
# ifdef PNG_FIXED_POINT_SUPPORTED
|
||||||
int_white_x = 31270L;
|
int_white_x = 31270L;
|
||||||
int_white_y = 32900L;
|
int_white_y = 32900L;
|
||||||
int_red_x = 64000L;
|
int_red_x = 64000L;
|
||||||
@ -563,6 +564,10 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
|
|||||||
int_green_y = 60000L;
|
int_green_y = 60000L;
|
||||||
int_blue_x = 15000L;
|
int_blue_x = 15000L;
|
||||||
int_blue_y = 6000L;
|
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_x = (float).3127;
|
||||||
@ -573,14 +578,6 @@ png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr,
|
|||||||
green_y = (float).60;
|
green_y = (float).60;
|
||||||
blue_x = (float).15;
|
blue_x = (float).15;
|
||||||
blue_y = (float).06;
|
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,
|
png_set_cHRM(png_ptr, info_ptr,
|
||||||
white_x, white_y, red_x, red_y, green_x, green_y, blue_x, blue_y);
|
white_x, white_y, red_x, red_y, green_x, green_y, blue_x, blue_y);
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user