From: Jens Axboe Date: Tue, 19 Jul 2022 19:21:19 +0000 (-0600) Subject: engines/http: silence openssl 3.0 deprecation warnings X-Git-Tag: test-tag-2022-08-09~15 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9c1c1a8d6a4f30eba9595da951d18db1685c03d8;p=fio.git engines/http: silence openssl 3.0 deprecation warnings Maybe someone will fix these one day, for now shut up the annoying warning about certain functions being deprecated. Example: engines/http.c: In function ‘_gen_hex_md5’: engines/http.c:261:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 261 | MD5((unsigned char*)p, len, hash); | ^~~ In file included from engines/http.c:28: /usr/include/openssl/md5.h:52:38: note: declared here 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, | ^~~ engines/http.c: In function ‘_hmac’: engines/http.c:273:9: warning: ‘HMAC_CTX_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 273 | ctx = HMAC_CTX_new(); | ^~~ Signed-off-by: Jens Axboe --- diff --git a/engines/http.c b/engines/http.c index b6df70f8..1de9e66c 100644 --- a/engines/http.c +++ b/engines/http.c @@ -29,6 +29,10 @@ #include "fio.h" #include "../optgroup.h" +/* + * Silence OpenSSL 3.0 deprecated function warnings + */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" enum { FIO_HTTP_WEBDAV = 0,