folly: fix clang build with -Wunused-const-variable
authorIgor Sugak <sugak@fb.com>
Fri, 29 Jan 2016 23:33:50 +0000 (15:33 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Sat, 30 Jan 2016 00:20:44 +0000 (16:20 -0800)
Summary: Fix a few unused const variables exposed by clang's `-Wunused-const-variable`.

Reviewed By: yfeldblum

Differential Revision: D2878944

fb-gh-sync-id: f5500fda4782eac2964761c0398d016d57716269

folly/experimental/test/BitVectorCodingTest.cpp
folly/experimental/test/EliasFanoCodingTest.cpp
folly/io/async/EventBase.cpp
folly/test/FBStringBenchmark.cpp
folly/test/FBVectorBenchmark.cpp
folly/test/FBVectorTest.cpp

index ff8e0fd6284c9e3479a915cd775b32dd221b5ce4..d51853e5ab20a626bab62533c05f8bee30541478 100644 (file)
@@ -70,8 +70,6 @@ TEST_F(BitVectorCodingTest, SkipForwardPointers) {
 
 namespace bm {
 
-constexpr size_t k1M = 1000000;
-
 typedef BitVectorEncoder<uint32_t, uint32_t, 128, 128> Encoder;
 typedef BitVectorReader<Encoder> Reader;
 
index 16482e097afc9d43b71f476a36c5ebcb614cfc1d..47fdf007adbc938dd1c0daea28268830b599890b 100644 (file)
@@ -84,8 +84,6 @@ TEST_F(EliasFanoCodingTest, Select64) {
 
 namespace bm {
 
-constexpr size_t k1M = 1000000;
-
 typedef EliasFanoEncoderV2<uint32_t, uint32_t, 128, 128> Encoder;
 typedef EliasFanoReader<Encoder> Reader;
 
index c636b0eea08a03c68837c38b853134d87d68595c..51a320a1c045fe303ab9826045ae3683dade4005 100644 (file)
@@ -55,8 +55,6 @@ class FunctionLoopCallback : public EventBase::LoopCallback {
 
 namespace folly {
 
-const int kNoFD = -1;
-
 /*
  * EventBase::FunctionRunner
  */
index f2eb5e72692008cae563c79d5c23a561db3127aa..c7fdbf5133e4d8bf891fd75818f33ff2086c8e4f 100644 (file)
@@ -39,8 +39,6 @@ using namespace folly;
 static const int seed = folly::randomNumberSeed();
 typedef boost::mt19937 RandomT;
 static RandomT rng(seed);
-static const size_t maxString = 100;
-static const bool avoidAliasing = true;
 
 template <class Integral1, class Integral2>
 Integral2 random(Integral1 low, Integral2 up) {
index ee3c2bcd193fbb91b7ce1d428e2eea791be2e2f0..3ff6b9dee74f94b52c9e4358431552824ea43084 100644 (file)
@@ -37,8 +37,6 @@ using namespace folly;
 auto static const seed = randomNumberSeed();
 typedef boost::mt19937 RandomT;
 static RandomT rng(seed);
-static const size_t maxString = 100;
-static const bool avoidAliasing = true;
 
 template <class Integral1, class Integral2>
 Integral2 random(Integral1 low, Integral2 up) {
index b2cfa6431b2e9da5c888936351ba4b0cc1e63807..5cd1f298fe37a8ba322991a25a2a00b1dba0d654 100644 (file)
@@ -37,8 +37,6 @@ using namespace folly;
 auto static const seed = randomNumberSeed();
 typedef boost::mt19937 RandomT;
 static RandomT rng(seed);
-static const size_t maxString = 100;
-static const bool avoidAliasing = true;
 
 template <class Integral1, class Integral2>
 Integral2 random(Integral1 low, Integral2 up) {