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:
Sage Weil 2016-02-11 08:52:57 -05:00
parent fd85a9b576
commit 0da0eda783
2 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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;