From 3740be42c8923eb169c7f14f9af524c995c829a0 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 7 Aug 2016 19:01:35 -0500 Subject: [PATCH] [libpng12] Suppress warning about unused png_digit[] array in pngerror.c. --- pngerror.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pngerror.c b/pngerror.c index 0ce17445..07ec2589 100644 --- a/pngerror.c +++ b/pngerror.c @@ -1,8 +1,8 @@ /* pngerror.c - stub functions for i/o and memory allocation * - * Last changed in libpng 1.2.51 [February 6, 2014] - * Copyright (c) 1998-2002,2004,2006-2014 Glenn Randers-Pehrson + * Last changed in libpng 1.2.57 [%RDATE%] + * Copyright (c) 1998-2002,2004,2006-2014,2016 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * @@ -150,14 +150,14 @@ png_benign_error(png_structp png_ptr, png_const_charp error_message) * to 63 bytes, the name characters are output as hex digits wrapped in [] * if the character is invalid. */ +#define PNG_MAX_ERROR_TEXT 64 +#if defined(PNG_WARNINGS_SUPPORTED) || defined(PNG_ERROR_TEXT_SUPPORTED) #define isnonalpha(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97)) static PNG_CONST char png_digit[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; -#define PNG_MAX_ERROR_TEXT 64 -#if defined(PNG_WARNINGS_SUPPORTED) || defined(PNG_ERROR_TEXT_SUPPORTED) static void /* PRIVATE */ png_format_buffer(png_structp png_ptr, png_charp buffer, png_const_charp error_message)