diff options
author | John Bowler <jbowler@acm.org> | 2013-04-25 10:28:01 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2013-04-25 10:28:01 -0500 |
commit | bb0407f3dcef0fe573f829edf51bd7636071341d (patch) | |
tree | 417c6f1ac204d149ae630ad98d2b6bcca06b94c6 /pngrtran.c | |
parent | b4a08b81b2d382b5d7531dc7ab95fc0a50867d25 (diff) | |
download | libpng-bb0407f3dcef0fe573f829edf51bd7636071341d.tar.gz |
[libpng15] Avoid a compiler warning about unused png_ptr
in translate_gamma_flags()
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pngrtran.c b/pngrtran.c index 7adb1466e..6a464417b 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -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; |