summaryrefslogtreecommitdiff
path: root/pngerror.c
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2014-06-24 19:38:41 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-06-24 19:38:41 -0500
commit910aaadddb4b5d873124d29e41146c373e61bf3a (patch)
tree80dad290251666eb85e02303cd6c4f3ce698ec7e /pngerror.c
parentfc932f7b03c1198fb66b35e5801a0d365f9a6e99 (diff)
downloadlibpng-910aaadddb4b5d873124d29e41146c373e61bf3a.tar.gz
[libpng16] Fixed clang no-warning builds: png_digit was defined but never used.
Diffstat (limited to 'pngerror.c')
-rw-r--r--pngerror.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pngerror.c b/pngerror.c
index 03dcd7c2f..fdf496540 100644
--- a/pngerror.c
+++ b/pngerror.c
@@ -415,6 +415,9 @@ png_app_error(png_const_structrp png_ptr, png_const_charp error_message)
}
#endif /* BENIGN_ERRORS */
+#define PNG_MAX_ERROR_TEXT 196 /* Currently limited be profile_error in png.c */
+#if defined(PNG_WARNINGS_SUPPORTED) || \
+ (defined(PNG_READ_SUPPORTED) && defined(PNG_ERROR_TEXT_SUPPORTED))
/* These utilities are used internally to build an error message that relates
* to the current chunk. The chunk name comes from png_ptr->chunk_name,
* this is used to prefix the message. The message is limited in length
@@ -427,9 +430,6 @@ static PNG_CONST char png_digit[16] = {
'A', 'B', 'C', 'D', 'E', 'F'
};
-#define PNG_MAX_ERROR_TEXT 196 /* Currently limited be profile_error in png.c */
-#if defined(PNG_WARNINGS_SUPPORTED) || \
- (defined(PNG_READ_SUPPORTED) && defined(PNG_ERROR_TEXT_SUPPORTED))
static void /* PRIVATE */
png_format_buffer(png_const_structrp png_ptr, png_charp buffer, png_const_charp
error_message)