Skip to content

Commit

Permalink
[zlib] Turn off warnings as errors for -Wstrict-prototypes
Browse files Browse the repository at this point in the history
until upstream madler/zlib#633 is resolved
  • Loading branch information
lambdageek committed Apr 22, 2022
1 parent 7c1da52 commit f5f0fa3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/native/external/zlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ set(ZLIB_SOURCES_BASE
)

addprefix(ZLIB_SOURCES "${CMAKE_CURRENT_LIST_DIR}/zlib" "${ZLIB_SOURCES_BASE}")

if (CMAKE_C_COMPILER_ID MATCHES "Clang")
# Turn off warn-as-error for strict prototype checking until https://github.com/madler/zlib/issues/633 is fixed upstream
set_source_files_properties(${ZLIB_SOURCES} PROPERTIES COMPILE_OPTIONS "-Wno-error=strict-prototypes")
endif()

0 comments on commit f5f0fa3

Please sign in to comment.