diff --git a/cmake/zip.cmake b/cmake/zip.cmake index 2b0f76cbe..c8186d39c 100644 --- a/cmake/zip.cmake +++ b/cmake/zip.cmake @@ -20,3 +20,11 @@ endif() set(CMAKE_DISABLE_TESTING ON CACHE BOOL "" FORCE) add_subdirectory(${THIRDPARTY_DIR}/zip) + +if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") + target_compile_options(zip PRIVATE -Wno-type-limits) + +# -Wno-type-limits due to: +# zip/src/miniz.h:8503:30: error: comparison is always false due to limited range of data type [-Werror=type-limits] +# 8503 | if (((mz_uint64)buf_size > 0xFFFFFFFF) || (uncomp_size > 0xFFFFFFFF)) { +endif() diff --git a/vendor/zip b/vendor/zip index d7df626f3..0e9ab23eb 160000 --- a/vendor/zip +++ b/vendor/zip @@ -1 +1 @@ -Subproject commit d7df626f3aa457e01669f65e61bf8f484e352941 +Subproject commit 0e9ab23eb4a969bd71725d89797dcd8a5a33a7e1