Enable -Wunused-variables
[folly.git] / folly / test / stl_tests / StlVectorTest.cpp
index 42920e13e99904935f648ea367f6802e3b9bfa87..7e0139d63a84b13e92559ddb572ad295e50481d9 100644 (file)
@@ -194,6 +194,7 @@ THOUGHTS:
 // but it also means we have some parameters that may not be used.
 FOLLY_PUSH_WARNING
 FOLLY_GCC_DISABLE_WARNING("-Wunused-parameter")
+FOLLY_GCC_DISABLE_WARNING("-Wunused-variable")
 
 using namespace std;
 using namespace folly;
@@ -928,6 +929,7 @@ uint64_t ReadTSC() {
     return true;                                                         \
     auto f = test_ ## name <Vector,                                      \
       typename Vector::value_type, typename Vector::allocator_type>;     \
+    (void)f;                                                             \
     return true;                                                         \
   }                                                                      \
   template <class Vector> bool test_I_ ## name ## 3 () {                 \