Suppress unused-but-set-variable in benchmark/ (#273)

This commit is contained in:
Erik Price
2022-07-05 18:27:55 +02:00
committed by GitHub
parent b18c12b449
commit 4962c1c561
2 changed files with 6 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ static void Parse_VectorTile(benchmark::State& state) {
}
}
}
(void)length;
}
}

View File

@@ -16,6 +16,7 @@ static void TileCountBounds(benchmark::State& state) {
auto count = util::tileCount(sanFrancisco, 10);
length += count;
}
(void)length;
}
static void TileCoverPitchedViewport(benchmark::State& state) {
@@ -29,6 +30,7 @@ static void TileCoverPitchedViewport(benchmark::State& state) {
auto tiles = util::tileCover(transform.getState(), 8);
length += tiles.size();
}
(void)length;
}
static void TileCoverBounds(benchmark::State& state) {
@@ -37,6 +39,7 @@ static void TileCoverBounds(benchmark::State& state) {
auto tiles = util::tileCover(sanFrancisco, 8);
length += tiles.size();
}
(void)length;
}
static const auto geomPolygon = Polygon<double>{
@@ -74,6 +77,7 @@ static void TileCoverPolygon(benchmark::State& state) {
auto tiles = util::tileCover(geomPolygon, 8);
length += tiles.size();
}
(void)length;
}
static void TileCountPolygon(benchmark::State& state) {
@@ -83,6 +87,7 @@ static void TileCountPolygon(benchmark::State& state) {
auto tiles = util::tileCount(geomPolygon, 16);
length += tiles;
}
(void)length;
}
BENCHMARK(TileCountBounds);