]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
MSVC: Disable deprecated declarations (C4996) warning
authorVitaly Chikunov <vt@altlinux.org>
Fri, 3 Dec 2021 08:53:17 +0000 (11:53 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Dec 2021 16:45:14 +0000 (19:45 +0300)
`/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 <vt@altlinux.org>
CMakeLists.txt

index f46fca351d44aff36404fd0f3274dd35ef8d3268..a729a2041c42d894dd658246345eed2061f62a69 100644 (file)
@@ -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)