[libpng15] Avoid a compiler warning about unused png_ptr

in translate_gamma_flags()
This commit is contained in:
John Bowler
2013-04-25 10:28:01 -05:00
committed by Glenn Randers-Pehrson
parent b4a08b81b2
commit bb0407f3dc
3 changed files with 4 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ Version 1.5.16beta01 [April 25, 2013]
Ensure that NEON filter stuff is completely disabled when switched 'off'.
Previously the ARM NEON specific files were still built if the option
was switched 'off' as opposed to being explicitly disabled.
Avoid a compiler warning about unused png_ptr in translate_gamma_flags()
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@@ -4077,6 +4077,7 @@ Version 1.5.16beta01 [April 25, 2013]
Ensure that NEON filter stuff is completely disabled when switched 'off'.
Previously the ARM NEON specific files were still built if the option
was switched 'off' as opposed to being explicitly disabled.
Avoid a compiler warning about unused png_ptr in translate_gamma_flags()
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@@ -194,6 +194,8 @@ translate_gamma_flags(png_structp png_ptr, png_fixed_point output_gamma,
*/
# ifdef PNG_READ_sRGB_SUPPORTED
png_ptr->flags |= PNG_FLAG_ASSUME_sRGB;
# else
PNG_UNUSED(png_ptr)
# endif
if (is_screen)
output_gamma = PNG_GAMMA_sRGB;