From 0da0eda7835ac48b6792b01384df33ee700a364d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 11 Feb 2016 08:52:57 -0500 Subject: [PATCH] unittest_[ceph_]crypto: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/ceph_crypto.cc | 2 -- src/test/crypto.cc | 2 -- 2 files changed, 4 deletions(-) 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; -- 2.47.3