diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2022-05-19 00:06:01 +0200 |
---|---|---|
committer | Adam C. Emerson <aemerson@redhat.com> | 2022-05-19 00:06:01 +0200 |
commit | d5e1fdfc3cfd15b59e0e8fe2408c995b0cc8c0e7 (patch) | |
tree | 7527256d444651ecb70ce3368f14ad135442da46 /src/auth | |
parent | Merge pull request #46151 from cbodley/wip-rgw-derr-config-store (diff) | |
download | ceph-d5e1fdfc3cfd15b59e0e8fe2408c995b0cc8c0e7.tar.xz ceph-d5e1fdfc3cfd15b59e0e8fe2408c995b0cc8c0e7.zip |
build: Silence deprecation warnings from OpenSSL 3
The OpenSSL developers suggest that anyone wishing to continue using
low-level functions may either live with the warnings, silence them,
or switch to high level functions.
As high level functions do their own memory allocation, switching to
them may lead to performance regressions.
We do not wish to have deprecation warnings filling up our compiler
outputs when searching for other messages.
So silencing the warnings, at least for now, seems the least bad option.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/auth')
-rw-r--r-- | src/auth/Crypto.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index c96222feafc..ce666e8bdc8 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -33,6 +33,12 @@ #include "common/debug.h" #include <errno.h> +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + using std::ostringstream; using std::string; @@ -40,6 +46,7 @@ using ceph::bufferlist; using ceph::bufferptr; using ceph::Formatter; + // use getentropy() if available. it uses the same source of randomness // as /dev/urandom without the filesystem overhead #ifdef HAVE_GETENTROPY @@ -603,3 +610,6 @@ CryptoHandler *CryptoHandler::create(int type) return NULL; } } + +#pragma clang diagnostic pop +#pragma GCC diagnostic pop |