From 5b80c021f5ca47fd33e44a064b73dad844b1ebf7 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 23 Mar 2023 08:50:46 +0100 Subject: Stop complaining about deprecated OpenSSL functions OpenSSL 3.0 deprecated the OpenSSL's ENGINE API. That is as may be, but the kernel build host tools still use it. Disable the warning about deprecated declarations until somebody who cares fixes it. Signed-off-by: Linus Torvalds [mkl: ported from linux commit 6bfb56e93bce ("cert host tools: Stop complaining about deprecated OpenSSL functions")] Signed-off-by: Marc Kleine-Budde --- extract-cert.c | 7 +++++++ spki-hash.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/extract-cert.c b/extract-cert.c index b071bf4..c14a4a0 100644 --- a/extract-cert.c +++ b/extract-cert.c @@ -25,6 +25,13 @@ #define PKEY_ID_PKCS7 2 +/* + * OpenSSL 3.0 deprecates the OpenSSL's ENGINE API. + * + * Remove this if/when that API is no longer used + */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + static __attribute__((noreturn)) void format(void) { diff --git a/spki-hash.c b/spki-hash.c index 47bea50..4356ff7 100644 --- a/spki-hash.c +++ b/spki-hash.c @@ -27,6 +27,13 @@ #define PKEY_ID_PKCS7 2 +/* + * OpenSSL 3.0 deprecates the OpenSSL's ENGINE API. + * + * Remove this if/when that API is no longer used + */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + static __attribute__((noreturn)) void format(void) { -- cgit v1.2.3