From: Vitaly Chikunov Date: Fri, 3 Dec 2021 08:53:17 +0000 (+0300) Subject: MSVC: Disable deprecated declarations (C4996) warning X-Git-Tag: v3.0.1~37 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=a8ba96bcbcbd5e1dab9af83396c9c6f4eabab423;p=openssl-gost%2Fengine.git 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 --- 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)