File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,11 +48,14 @@ if(PLATFORM_LINUX OR PLATFORM_ANDROID OR PLATFORM_MACOS OR PLATFORM_IOS)
4848 target_compile_definitions (ZLib PRIVATE HAVE_UNISTD_H )
4949endif ()
5050
51- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
52- CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
53- # For inflate.c, disable the following
54- # warning: shifting a negative signed value is undefined [-Wshift-negative-value]
51+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
52+ # Disable the following warning:
53+ # shifting a negative signed value is undefined [-Wshift-negative-value]
5554 set_source_files_properties (inflate.c PROPERTIES COMPILE_FLAGS -Wno-shift-negative-value )
55+
56+ # Disable the following warning:
57+ # implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int'
58+ set_source_files_properties (gzwrite.c gzread.c PROPERTIES COMPILE_FLAGS -Wno-shorten-64-to-32 )
5659endif ()
5760
5861
You can’t perform that action at this time.
0 commit comments