mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Fixed pngvalid 'fail' function declaration on the Intel C Compiler.
This reverts to the previous 'static' implementation and works round the 'unused static function' warning by using PNG_UNUSED().
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
aaf1bb1ae1
commit
0f6303301f
@@ -1953,11 +1953,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));
|
||||
@@ -10267,6 +10265,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 */
|
||||
|
||||
Reference in New Issue
Block a user