[libpng17] Revert recent change to pngvalid.c.

This commit is contained in:
John Bowler 2013-11-22 18:34:37 -06:00 committed by Glenn Randers-Pehrson
parent 7e2707e2af
commit 158c947ce2

View File

@ -1964,11 +1964,9 @@ typedef struct png_modifier
} png_modifier;
/* This returns true if the test should be stopped now because it has already
* failed and it is running silently. It is not static simply to avoid having
* to special case it on all the #ifdefs on which it depends.
*/
extern int fail(png_modifier *pm);
/*static*/ int fail(png_modifier *pm)
* failed and it is running silently.
*/
static int fail(png_modifier *pm)
{
return !pm->log && !pm->this.verbose && (pm->this.nerrors > 0 ||
(pm->this.treat_warnings_as_errors && pm->this.nwarnings > 0));
@ -10479,6 +10477,9 @@ int main(int argc, char **argv)
}
}
/* This is required because some very minimal configurations do not use it:
*/
UNUSED(fail)
return 0;
}
#else /* write or low level APIs not supported */