[libpng16] Conditionally compile some code in png_deflate_claim(), when
PNG_WARNINGS_SUPPORTED and PNG_ERROR_TEXT_SUPPORTED are disabled.
diff --git a/pngwutil.c b/pngwutil.c
index 7990a3b..6bd24a4 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -297,6 +297,7 @@
{
if (png_ptr->zowner != 0)
{
+# if defined(PNG_WARNINGS_SUPPORTED) || defined(PNG_ERROR_TEXT_SUPPORTED)
char msg[64];
PNG_STRING_FROM_CHUNK(msg, owner);
@@ -308,6 +309,7 @@
* are minimal.
*/
(void)png_safecat(msg, (sizeof msg), 10, " using zstream");
+# endif
# if PNG_LIBPNG_BUILD_BASE_TYPE >= PNG_LIBPNG_BUILD_RC
png_warning(png_ptr, msg);