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
}
TEST(BucketedTimeSeries, reConstructEmptyTimeSeries) {
- auto verify = [](auto ts) {
- EXPECT_TRUE(ts.empty());
- EXPECT_EQ(0, ts.sum());
- EXPECT_EQ(0, ts.count());
+ auto verify = [](auto timeSeries) {
+ EXPECT_TRUE(timeSeries.empty());
+ EXPECT_EQ(0, timeSeries.sum());
+ EXPECT_EQ(0, timeSeries.count());
};
// Create a 100 second timeseries with 10 buckets_