From a8ba96bcbcbd5e1dab9af83396c9c6f4eabab423 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Fri, 3 Dec 2021 11:53:17 +0300 Subject: [PATCH] MSVC: Disable deprecated declarations (C4996) warning `/wd4996' disables deprecated declarations warning, this is analogous to `-Wno-error=deprecated-declarations'. Error example: gost_pmeth.c(39,17): warning C4996: 'EVP_PKEY_get0': Since OpenSSL 3.0 Signed-off-by: Vitaly Chikunov --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f46fca3..a729a20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC") add_definitions(-D_CRT_SECURE_NO_WARNINGS) add_definitions(-D_CRT_DEPRECATED_NO_WARNINGS) add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) - add_compile_options(/MP /WX /W4 /wd4100 /wd4267 /wd4206 /wd4706 /wd4244 /wd4115) + add_compile_options(/MP /WX /W4 /wd4100 /wd4267 /wd4206 /wd4706 /wd4244 /wd4115 /wd4996) endif() if (ASAN) -- 2.39.2