mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Revert recent change to pngvalid.c.
This commit is contained in:
parent
7e2707e2af
commit
158c947ce2
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user