From 7c81fa89e7ad7beaeeb9d2ee9351e25d300d81e2 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 10 Sep 2024 19:10:15 +0200 Subject: [PATCH] Update zutil.c Disable warning. --- contrib/zlib/zutil.c | 3 +++ 1 file changed, 3 insertions(+) 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 */