From: Sage Weil Date: Thu, 11 Feb 2016 13:52:57 +0000 (-0500) Subject: unittest_[ceph_]crypto: fix warnings X-Git-Tag: v10.1.0~389^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0da0eda7835ac48b6792b01384df33ee700a364d;p=ceph.git 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 --- diff --git a/src/test/ceph_crypto.cc b/src/test/ceph_crypto.cc index 11d410182a4d..893f332b073f 100644 --- a/src/test/ceph_crypto.cc +++ b/src/test/ceph_crypto.cc @@ -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); diff --git a/src/test/crypto.cc b/src/test/crypto.cc index 17e90d04097c..25c01ba20d2e 100644 --- a/src/test/crypto.cc +++ b/src/test/crypto.cc @@ -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;