-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unnecessary compilation noise #270
Comments
AFAIK it shows up not just with miniz but also for very old and insecure zlib versions, I wouldn't call that unnecessary. It has to be a compile-time message, the function that takes |
I see. My point is that if I explicitly build with My idea is something like this: --- a/spng/spng.c
+++ b/spng/spng.c
@@ -1208,7 +1208,7 @@ static int spng__inflate_init(spng_ctx *ctx, int window_bits)
if(inflateValidate(&ctx->zstream, validate)) return SPNG_EZLIB_INIT;
-#else /* This requires zlib >= 1.2.11 */
+#else if !defined(SPNG_USE_MINIZ) /* This requires zlib >= 1.2.11 */
#pragma message ("inflateValidate() not available, SPNG_CTX_IGNORE_ADLER32 will be ignored")
#endif
But, of course, it's your choice in the end. I could understand if you just said "no" and close this issue. 😉 |
Hi there,
could we please get rid of this message - or at least only show it if not explicitly built with miniz as the zlib API provider?
Thanks!
libspng/spng/spng.c
Line 1212 in adc9439
The text was updated successfully, but these errors were encountered: