From 6fc2296a6ea53c7ae1a5296fd14cdeaa39b3af44 Mon Sep 17 00:00:00 2001 From: def Date: Mon, 11 Jul 2022 00:19:01 +0200 Subject: [PATCH] Ignore openssl deprecation warning for now (fixes #5597) --- src/base/hash_openssl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/base/hash_openssl.cpp b/src/base/hash_openssl.cpp index ce744051a..a3a7a6ea4 100644 --- a/src/base/hash_openssl.cpp +++ b/src/base/hash_openssl.cpp @@ -1,6 +1,11 @@ #if defined(CONF_OPENSSL) #include "hash_ctxt.h" +#ifdef __GNUC__ +// EVP requires heap allocations, let's postpone the replacement for now +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + void sha256_init(SHA256_CTX *ctxt) { SHA256_Init(ctxt);