Commit 5d9dbb73 authored by Jim Meyering's avatar Jim Meyering Committed by Facebook Github Bot

folly/test/TimeseriesTest.cpp: avoid shadowing warnings

Summary:
Fix warnings exposed by gcc's -Wshadow-compatible-local.
Rename lambda parameter "ts" to "timeSeries".

This avoids the following errors:

  folly/test/TimeseriesTest.cpp:802:27: error: declaration of 'ts' shadows a previous local [-Werror=shadow-compatible-local]
  folly/test/TimeseriesTest.cpp:809:31: error: shadowed declaration is here [-Werror=shadow-compatible-local]

Reviewed By: yfeldblum, liuxuli

Differential Revision: D4735180

fbshipit-source-id: 59b3fecf4031b3c6615e5b764fbc4ea04754eb50
parent cafd8d8e
...@@ -799,10 +799,10 @@ TEST(BucketedTimeSeries, addHistorical) { ...@@ -799,10 +799,10 @@ TEST(BucketedTimeSeries, addHistorical) {
} }
TEST(BucketedTimeSeries, reConstructEmptyTimeSeries) { TEST(BucketedTimeSeries, reConstructEmptyTimeSeries) {
auto verify = [](auto ts) { auto verify = [](auto timeSeries) {
EXPECT_TRUE(ts.empty()); EXPECT_TRUE(timeSeries.empty());
EXPECT_EQ(0, ts.sum()); EXPECT_EQ(0, timeSeries.sum());
EXPECT_EQ(0, ts.count()); EXPECT_EQ(0, timeSeries.count());
}; };
// Create a 100 second timeseries with 10 buckets_ // Create a 100 second timeseries with 10 buckets_
......
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