From f3b1d54519a895f634bae1fa0db8382df97c4974 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Thu, 27 Oct 2022 10:39:18 +0000 Subject: [PATCH] coap_openssl.c: Ignore OpenSSL 3.0 deprecated warnings for now --- src/coap_openssl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/coap_openssl.c b/src/coap_openssl.c index a6720b89..c3a2aca3 100644 --- a/src/coap_openssl.c +++ b/src/coap_openssl.c @@ -70,6 +70,13 @@ #include #include +#if OPENSSL_VERSION_NUMBER > 0x30000000L +#ifdef __GNUC__ +/* Ignore OpenSSL 3.0 deprecated warnings for now */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif +#endif /* OPENSSL_VERSION_NUMBER > 0x30000000L */ + #ifdef COAP_EPOLL_SUPPORT # include #endif /* COAP_EPOLL_SUPPORT */