Skip to content

Commit 2158a7c

Browse files
authored
chore: silence deprecation warnings (#771)
silence deprecation warnings
1 parent b40f3bb commit 2158a7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/AwsCryptosdkCFlags.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function(aws_cryptosdk_set_common_properties target)
5252
list(APPEND AWS_C_FLAGS /wd4267 /wd4242 /wd4244) # Narrowing implicit conversions of int types
5353
list(APPEND AWS_C_FLAGS /wd4245) # Implicit sign extension, unsigned to signed conversion
5454
list(APPEND AWS_C_FLAGS /wd4221) # obj = { .foo = nonconstant() }
55+
list(APPEND AWS_C_FLAGS /wd4996) # Use of deprecated APIs, necessary for OpenSSL3
5556

5657
# MSVC warnings about C99 standard stuff
5758
list(APPEND AWS_C_FLAGS /wd4204) # arr = { 0, 1, 2 } initializers
@@ -74,6 +75,7 @@ function(aws_cryptosdk_set_common_properties target)
7475
list(APPEND AWS_C_FLAGS -Wno-long-long)
7576
list(APPEND AWS_C_FLAGS -Wno-missing-field-initializers)
7677
list(APPEND AWS_C_FLAGS -Wno-shorten-64-to-32)
78+
list(APPEND AWS_C_FLAGS -Wno-deprecated-declarations)
7779
endif(MSVC)
7880

7981
if(NOT SET_PROPERTIES_NO_WGNU)

0 commit comments

Comments
 (0)