summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-08-07 18:52:48 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2016-08-07 18:52:48 -0500
commita207fcab316a375691930d1e7fd2d6950d3e4aab (patch)
tree964392e530582c4eb8da7901a126399b9ea35fbf
parent7d9017e7c04fb5c21f0388df376616c8685977f3 (diff)
downloadlibpng-a207fcab316a375691930d1e7fd2d6950d3e4aab.tar.gz
[libpng14] Suppress warning about unused png_digit[] array in pngerror.c.
-rw-r--r--pngerror.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pngerror.c b/pngerror.c
index 392e48dcb..109f53b8b 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.4.8 [July 7, 2011]
- * Copyright (c) 1998-2002,2004,2006-2011 Glenn Randers-Pehrson
+ * Last changed in libpng 1.4.20 [August 7, 2016]
+ * Copyright (c) 1998-2002,2004,2006-2011,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)