From fd8ef4c428f8e35dfe6c7aa956734b68118b05a5 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 7 Aug 2015 14:43:34 -0500 Subject: [PATCH] [libpng16] Add #ifdef PNG_DEBUG/#endif around normally unreachable code in pngread.c --- pngread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pngread.c b/pngread.c index 9cc5510dd..29cbc00f4 100644 --- a/pngread.c +++ b/pngread.c @@ -3630,8 +3630,10 @@ png_image_read_background(png_voidp argument) } break; +#ifdef PNG_DEBUG default: png_error(png_ptr, "unexpected bit depth"); +#endif } return 1;