mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
unittest_[ceph_]crypto: fix warnings
test/crypto.cc:20:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable] ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n ^ test/ceph_crypto.cc:12:31: warning: ‘crypto_env’ defined but not used [-Wunused-variable] ::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(n ^ Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
fd85a9b576
commit
0da0eda783
@ -9,8 +9,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(new CryptoEnvironment);
|
||||
|
||||
TEST(MD5, Simple) {
|
||||
ceph::crypto::MD5 h;
|
||||
h.Update((const byte*)"foo", 3);
|
||||
|
@ -17,8 +17,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
::testing::Environment* const crypto_env = ::testing::AddGlobalTestEnvironment(new CryptoEnvironment);
|
||||
|
||||
TEST(AES, ValidateSecret) {
|
||||
CryptoHandler *h = g_ceph_context->get_crypto_handler(CEPH_CRYPTO_AES);
|
||||
int l;
|
||||
|
Loading…
Reference in New Issue
Block a user