]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
unittest_[ceph_]crypto: fix warnings 7608/head
authorSage Weil <sage@redhat.com>
Thu, 11 Feb 2016 13:52:57 +0000 (08:52 -0500)
committerSage Weil <sage@redhat.com>
Thu, 11 Feb 2016 13:53:26 +0000 (08:53 -0500)
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>
src/test/ceph_crypto.cc
src/test/crypto.cc

index 11d410182a4d60469229476fe69e955ef4a1c77a..893f332b073f7ab42915ebffc9e8e9ff07f10403 100644 (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);
index 17e90d04097cebab7ee0bd32de745bc0d55bea71..25c01ba20d2ee560171a91c45e97f501e63af1fd 100644 (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;