PNG_UNUSED(png_ptr)

Max Stepin <[email protected]> Wed, 5 Dec 2018 10:05:48 +0300
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CA+C1nqhJQZ3VtmuG6iZ3WoX-=dkuK5trR-5LH=bDSSGvVrnWxQ@mail.gmail.com>
Shouldn't we use this macro in png_do_expand_palette() so the Microsoft
compiler will not complain about png_ptr?

Maybe in a similar way to how it's used in translate_gamma_flags():

#     ifdef PNG_READ_sRGB_SUPPORTED
         png_ptr->flags |= PNG_FLAG_ASSUME_sRGB;
#     else
         PNG_UNUSED(png_ptr)
#     endif

Thanks.

_______________________________________________
png-mng-implement mailing list
png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/png-mng-implement