diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-08-07 18:48:37 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2016-08-07 18:50:58 -0500 |
commit | 6d610b9c4d573447bcf082c7f65bf1018ae93060 (patch) | |
tree | 8fd71bb65debbcaeb4f66a4ab6fc6e9d71386709 | |
parent | 0188ecfb8fce0c3729ada13a591cf345627c975e (diff) | |
download | libpng-6d610b9c4d573447bcf082c7f65bf1018ae93060.tar.gz |
[libpng15] Suppress warning about unused png_digit[] array in pngerror.c.
-rw-r--r-- | pngerror.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pngerror.c b/pngerror.c index 372d1b6fb..b59710914 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.5.19 [August 21, 2014] - * Copyright (c) 1998-2002,2004,2006-2014 Glenn Randers-Pehrson + * Last changed in libpng 1.5.28 [(PENDING RELEASE)] + * 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.) * @@ -371,14 +371,15 @@ 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) |