diff options
Diffstat (limited to 'src/auth/Crypto.cc')
-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 |