Commit 225af552 authored by Igor Sugak's avatar Igor Sugak Committed by facebook-github-bot-1

folly: fix clang build with -Wunused-const-variable

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
parent 2a8d81ac
...@@ -70,8 +70,6 @@ TEST_F(BitVectorCodingTest, SkipForwardPointers) { ...@@ -70,8 +70,6 @@ TEST_F(BitVectorCodingTest, SkipForwardPointers) {
namespace bm { namespace bm {
constexpr size_t k1M = 1000000;
typedef BitVectorEncoder<uint32_t, uint32_t, 128, 128> Encoder; typedef BitVectorEncoder<uint32_t, uint32_t, 128, 128> Encoder;
typedef BitVectorReader<Encoder> Reader; typedef BitVectorReader<Encoder> Reader;
......
...@@ -84,8 +84,6 @@ TEST_F(EliasFanoCodingTest, Select64) { ...@@ -84,8 +84,6 @@ TEST_F(EliasFanoCodingTest, Select64) {
namespace bm { namespace bm {
constexpr size_t k1M = 1000000;
typedef EliasFanoEncoderV2<uint32_t, uint32_t, 128, 128> Encoder; typedef EliasFanoEncoderV2<uint32_t, uint32_t, 128, 128> Encoder;
typedef EliasFanoReader<Encoder> Reader; typedef EliasFanoReader<Encoder> Reader;
......
...@@ -55,8 +55,6 @@ class FunctionLoopCallback : public EventBase::LoopCallback { ...@@ -55,8 +55,6 @@ class FunctionLoopCallback : public EventBase::LoopCallback {
namespace folly { namespace folly {
const int kNoFD = -1;
/* /*
* EventBase::FunctionRunner * EventBase::FunctionRunner
*/ */
......
...@@ -39,8 +39,6 @@ using namespace folly; ...@@ -39,8 +39,6 @@ using namespace folly;
static const int seed = folly::randomNumberSeed(); static const int seed = folly::randomNumberSeed();
typedef boost::mt19937 RandomT; typedef boost::mt19937 RandomT;
static RandomT rng(seed); static RandomT rng(seed);
static const size_t maxString = 100;
static const bool avoidAliasing = true;
template <class Integral1, class Integral2> template <class Integral1, class Integral2>
Integral2 random(Integral1 low, Integral2 up) { Integral2 random(Integral1 low, Integral2 up) {
......
...@@ -37,8 +37,6 @@ using namespace folly; ...@@ -37,8 +37,6 @@ using namespace folly;
auto static const seed = randomNumberSeed(); auto static const seed = randomNumberSeed();
typedef boost::mt19937 RandomT; typedef boost::mt19937 RandomT;
static RandomT rng(seed); static RandomT rng(seed);
static const size_t maxString = 100;
static const bool avoidAliasing = true;
template <class Integral1, class Integral2> template <class Integral1, class Integral2>
Integral2 random(Integral1 low, Integral2 up) { Integral2 random(Integral1 low, Integral2 up) {
......
...@@ -37,8 +37,6 @@ using namespace folly; ...@@ -37,8 +37,6 @@ using namespace folly;
auto static const seed = randomNumberSeed(); auto static const seed = randomNumberSeed();
typedef boost::mt19937 RandomT; typedef boost::mt19937 RandomT;
static RandomT rng(seed); static RandomT rng(seed);
static const size_t maxString = 100;
static const bool avoidAliasing = true;
template <class Integral1, class Integral2> template <class Integral1, class Integral2>
Integral2 random(Integral1 low, Integral2 up) { Integral2 random(Integral1 low, Integral2 up) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment