diff --git a/contrib/zlib/zutil.c b/contrib/zlib/zutil.c index 9543ae825..6a5a032e1 100644 --- a/contrib/zlib/zutil.c +++ b/contrib/zlib/zutil.c @@ -23,6 +23,8 @@ z_const char * const z_errmsg[10] = { (z_const char *)"" }; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-non-prototype" const char * ZEXPORT zlibVersion() { @@ -321,6 +323,7 @@ void ZLIB_INTERNAL zcfree(opaque, ptr) (void)opaque; free(ptr); } +#pragma clang diagnostic pop #endif /* MY_ZCALLOC */