From 318e1ccc09fb02bc9a0e3dd09e5d1c5945d8f4d3 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 16 Aug 2024 15:21:35 +0300 Subject: [PATCH] Zip: Suppress MSVC warnings For Example: 3rdparty\zlib\src\gzlib.c(235): warning C4996: 'open': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _open. See online help for details. Change-Id: Ifd89210cf782e9bbdbe5253e7dcef613e29e5f1f Reviewed-by: David Schulz --- src/libs/solutions/zip/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/solutions/zip/CMakeLists.txt b/src/libs/solutions/zip/CMakeLists.txt index 14bd1235be0..af0fca6d316 100644 --- a/src/libs/solutions/zip/CMakeLists.txt +++ b/src/libs/solutions/zip/CMakeLists.txt @@ -41,3 +41,7 @@ extend_qtc_library(Zip zutil.c zutil.h ) + +if(MSVC) + target_compile_options(Zip PUBLIC /wd4996) +endif()