fix compiler warnings from gcc-4.9 + -Wunused-variable
[folly.git] / folly / io / test / IOBufCursorTest.cpp
index 392f87b18fb3a3f96c74934c8ab3efca207d0bb1..86aad240f1466c82f42625f57efdd91c8e93b882 100644 (file)
@@ -40,7 +40,7 @@ TEST(IOBuf, RWCursor) {
   unique_ptr<IOBuf> iobuf2(IOBuf::create(20));
   iobuf2->append(20);
 
-  IOBuf* iob2ptr = iobuf2.get();
+  iobuf2.get();
   iobuf1->prependChain(std::move(iobuf2));
 
   EXPECT_TRUE(iobuf1->isChained());
@@ -772,7 +772,6 @@ BENCHMARK(cursorBenchmark, iters) {
 }
 
 BENCHMARK(skipBenchmark, iters) {
-  uint8_t buf;
   while (iters--) {
     Cursor c(iobuf_read_benchmark.get());
     for(int i = 0; i < benchmark_size ; i++) {