Skip to content

Commit

Permalink
Ignore openssl3 deprecation warnings
Browse files Browse the repository at this point in the history
Ignore openssl3 MD5 low level function deprecation warnings,
for now.
  • Loading branch information
jmcnamara committed Dec 30, 2022
1 parent 5aeab22 commit 04b42bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ endif()

if(USE_OPENSSL_MD5)
list(APPEND LXW_PRIVATE_COMPILE_DEFINITIONS USE_OPENSSL_MD5)
if(NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
endif()
endif()

if(USE_MEM_FILE OR USE_FMEMOPEN)
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ifdef USE_NO_MD5
CFLAGS += -DUSE_NO_MD5
else
ifdef USE_OPENSSL_MD5
CFLAGS += -DUSE_OPENSSL_MD5
CFLAGS += -DUSE_OPENSSL_MD5 -Wno-deprecated-declarations
LIBS += -lcrypto
else
# Use md5 (the default).
Expand Down

0 comments on commit 04b42bd

Please sign in to comment.