If MINIZ_NO_ZLIB_APIS is defined, the prototype for mz_version is skipped but the definition isn’t, leading to the following warning or error in Clang when -Wmissing-prototypes is enabled:
miniz/miniz.c:182:13: error: no previous prototype for function 'mz_version' [-Werror,-Wmissing-prototypes]
const char *mz_version(void)
^
Looks like this can be fixed by moving the following line #ifndef MINIZ_NO_ZLIB_APIS up above this definition.
[I am building the current master, i.e. commit 18795fa61e590521381ba9e1fa4a4ab362b095f6, on macOS with Xcode 15.0.]
If
MINIZ_NO_ZLIB_APIS
is defined, the prototype formz_version
is skipped but the definition isn’t, leading to the following warning or error in Clang when-Wmissing-prototypes
is enabled:Looks like this can be fixed by moving the following line
#ifndef MINIZ_NO_ZLIB_APIS
up above this definition.[I am building the current master, i.e. commit 18795fa61e590521381ba9e1fa4a4ab362b095f6, on macOS with Xcode 15.0.]