Skip to content

Commit 1bd8d46

Browse files
author
Bogdan Degtyariov
committed
Fix the warning for a function definition without a prototype in MacOS
Change-Id: Ic12d1032e297a0ee745a02bc2fca9388fb65d51f
1 parent 45a5244 commit 1bd8d46

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cdk/extra/zlib/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ if(MSVC)
160160

161161
endif()
162162

163+
if (APPLE)
164+
# Disable warning for zlib 1.2.13.
165+
# In zlib version 1.3 this problem should be fixed:
166+
# https://github.com/madler/zlib/issues/633
167+
add_compile_options(-Wno-deprecated-non-prototype)
168+
endif()
169+
163170
# -------------------------------------------------------------------------
164171

165172
ADD_LIBRARY(zlib STATIC

0 commit comments

Comments
 (0)