From 1f23775d10f83ac6eb8e628f4606a80b8f3f3ca9 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 1 Dec 2013 15:05:31 -0600 Subject: [PATCH] [libpng16] Fixed unused "wrote_question" in non-write pngtest. --- pngtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pngtest.c b/pngtest.c index f3eddffbb..4e1c6956a 100644 --- a/pngtest.c +++ b/pngtest.c @@ -115,7 +115,9 @@ static int relaxed = 0; static int unsupported_chunks = 0; /* chunk unsupported by libpng in input */ static int error_count = 0; /* count calls to png_error */ static int warning_count = 0; /* count calls to png_warning */ +#ifdef PNG_WRITE_SUPPORTED static int wrote_question = 0; +#endif #ifdef __TURBOC__ #include @@ -1581,13 +1583,11 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname) #ifdef PNG_WRITE_SUPPORTED /* else nothing was written */ { - for (;;) { png_size_t num_in, num_out; char inbuf[256], outbuf[256]; - num_in = fread(inbuf, 1, sizeof inbuf, fpin); num_out = fread(outbuf, 1, sizeof outbuf, fpout);