From 225af552d5457a522d8ff63e0a0dfe5e43a58974 Mon Sep 17 00:00:00 2001 From: Igor Sugak Date: Fri, 29 Jan 2016 15:33:50 -0800 Subject: [PATCH] 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 --- folly/experimental/test/BitVectorCodingTest.cpp | 2 -- folly/experimental/test/EliasFanoCodingTest.cpp | 2 -- folly/io/async/EventBase.cpp | 2 -- folly/test/FBStringBenchmark.cpp | 2 -- folly/test/FBVectorBenchmark.cpp | 2 -- folly/test/FBVectorTest.cpp | 2 -- 6 files changed, 12 deletions(-) diff --git a/folly/experimental/test/BitVectorCodingTest.cpp b/folly/experimental/test/BitVectorCodingTest.cpp index ff8e0fd6..d51853e5 100644 --- a/folly/experimental/test/BitVectorCodingTest.cpp +++ b/folly/experimental/test/BitVectorCodingTest.cpp @@ -70,8 +70,6 @@ TEST_F(BitVectorCodingTest, SkipForwardPointers) { namespace bm { -constexpr size_t k1M = 1000000; - typedef BitVectorEncoder Encoder; typedef BitVectorReader Reader; diff --git a/folly/experimental/test/EliasFanoCodingTest.cpp b/folly/experimental/test/EliasFanoCodingTest.cpp index 16482e09..47fdf007 100644 --- a/folly/experimental/test/EliasFanoCodingTest.cpp +++ b/folly/experimental/test/EliasFanoCodingTest.cpp @@ -84,8 +84,6 @@ TEST_F(EliasFanoCodingTest, Select64) { namespace bm { -constexpr size_t k1M = 1000000; - typedef EliasFanoEncoderV2 Encoder; typedef EliasFanoReader Reader; diff --git a/folly/io/async/EventBase.cpp b/folly/io/async/EventBase.cpp index c636b0ee..51a320a1 100644 --- a/folly/io/async/EventBase.cpp +++ b/folly/io/async/EventBase.cpp @@ -55,8 +55,6 @@ class FunctionLoopCallback : public EventBase::LoopCallback { namespace folly { -const int kNoFD = -1; - /* * EventBase::FunctionRunner */ diff --git a/folly/test/FBStringBenchmark.cpp b/folly/test/FBStringBenchmark.cpp index f2eb5e72..c7fdbf51 100644 --- a/folly/test/FBStringBenchmark.cpp +++ b/folly/test/FBStringBenchmark.cpp @@ -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 Integral2 random(Integral1 low, Integral2 up) { diff --git a/folly/test/FBVectorBenchmark.cpp b/folly/test/FBVectorBenchmark.cpp index ee3c2bcd..3ff6b9de 100644 --- a/folly/test/FBVectorBenchmark.cpp +++ b/folly/test/FBVectorBenchmark.cpp @@ -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 Integral2 random(Integral1 low, Integral2 up) { diff --git a/folly/test/FBVectorTest.cpp b/folly/test/FBVectorTest.cpp index b2cfa643..5cd1f298 100644 --- a/folly/test/FBVectorTest.cpp +++ b/folly/test/FBVectorTest.cpp @@ -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 Integral2 random(Integral1 low, Integral2 up) { -- 2.34.1