Skip to content

Commit 0b1ec55

Browse files
committed
Resolve warnings in benchmarks
Continuation/should be part of #568.
1 parent 80330eb commit 0b1ec55

16 files changed

Lines changed: 28 additions & 13 deletions

benchmark/BFS_BM.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ BENCHMARK(BFS_X)
2525
->Range((unsigned long)1, (unsigned long)1 << 18)
2626
->Complexity();
2727

28+
[[maybe_unused]]
2829
static void BFS_FromReadedCitHep(benchmark::State &state) {
2930
auto edgeSet = cit_graph_ptr->getEdgeSet();
3031
for (auto _ : state) {
@@ -54,6 +55,7 @@ BENCHMARK(PSEUDO_CONCURRENCY_BFS_X)
5455
->Range((unsigned long)1, (unsigned long)1 << 18)
5556
->Complexity();
5657

58+
[[maybe_unused]]
5759
static void PSEUDO_CONCURRENCY_BFS_FromReadedCitHep(benchmark::State &state) {
5860
auto edgeSet = cit_graph_ptr->getEdgeSet();
5961
for (auto _ : state) {
@@ -64,6 +66,7 @@ static void PSEUDO_CONCURRENCY_BFS_FromReadedCitHep(benchmark::State &state) {
6466

6567
// BENCHMARK(PSEUDO_CONCURRENCY_BFS_FromReadedCitHep);
6668

69+
[[maybe_unused]]
6770
static void CONCURRENCY_BFS_X(benchmark::State &state) {
6871
CXXGraph::Graph<int> g;
6972
auto range_start = edges.begin();
@@ -83,6 +86,7 @@ static void CONCURRENCY_BFS_X(benchmark::State &state) {
8386
// ->RangeMultiplier(2)
8487
// ->Range((unsigned long)1, (unsigned long)1 << 18);
8588

89+
[[maybe_unused]]
8690
static void CONCURRENCY_BFS_FromReadedCitHep(benchmark::State &state) {
8791
auto edgeSet = cit_graph_ptr->getEdgeSet();
8892
for (auto _ : state) {

benchmark/BellmanFord_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ BENCHMARK(BellmanFord_X)
2525
->Range((unsigned long)1, (unsigned long)1 << 18)
2626
->Complexity();
2727

28+
[[maybe_unused]]
2829
static void BellmanFord_FromReadedCitHep(benchmark::State &state) {
2930
auto edgeSet = cit_graph_ptr->getEdgeSet();
3031
for (auto _ : state) {

benchmark/Boruvka_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BENCHMARK(Boruvka_X)
2424
->Range((unsigned long)1, (unsigned long)1 << 18)
2525
->Complexity();
2626

27+
[[maybe_unused]]
2728
static void Boruvka_FromReadedCitHep(benchmark::State &state) {
2829
auto edgeSet = cit_graph_ptr->getEdgeSet();
2930
for (auto _ : state) {

benchmark/Connectivity_BM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BENCHMARK(Connectivity_X)
2424
->Range((unsigned long)1, (unsigned long)1 << 18)
2525
->Complexity();
2626

27+
[[maybe_unused]]
2728
static void Connectivity_FromReadedCitHep(benchmark::State &state) {
2829
auto edgeSet = cit_graph_ptr->getEdgeSet();
2930
for (auto _ : state) {
@@ -52,6 +53,7 @@ BENCHMARK(StrongConnectivity_X)
5253
->Range((unsigned long)1, (unsigned long)1 << 18)
5354
->Complexity();
5455

56+
[[maybe_unused]]
5557
static void StrongConnectivity_FromReadedCitHep(benchmark::State &state) {
5658
auto edgeSet = cit_graph_ptr->getEdgeSet();
5759
for (auto _ : state) {

benchmark/CycleCheck_BM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BENCHMARK(CycleCheckBFS_X)
2424
->Range((unsigned long)1, (unsigned long)1 << 18)
2525
->Complexity();
2626

27+
[[maybe_unused]]
2728
static void CycleCheckBFS_FromReadedCitHep(benchmark::State &state) {
2829
auto edgeSet = cit_graph_ptr->getEdgeSet();
2930
for (auto _ : state) {
@@ -52,6 +53,7 @@ BENCHMARK(CycleCheckDFS_X)
5253
->Range((unsigned long)1, (unsigned long)1 << 18)
5354
->Complexity();
5455

56+
[[maybe_unused]]
5557
static void CycleCheckDFS_FromReadedCitHep(benchmark::State &state) {
5658
auto edgeSet = cit_graph_ptr->getEdgeSet();
5759
for (auto _ : state) {

benchmark/DFS_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ BENCHMARK(DFS_X)
2626
->Range((unsigned long)1, (unsigned long)1 << 18)
2727
->Complexity();
2828

29+
[[maybe_unused]]
2930
static void DFS_FromReadedCitHep(benchmark::State &state) {
3031
auto edgeSet = cit_graph_ptr->getEdgeSet();
3132
for (auto _ : state) {

benchmark/Dial_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BENCHMARK(Dial_X)
2424
->Range((unsigned long)1, (unsigned long)1 << 18)
2525
->Complexity();
2626

27+
[[maybe_unused]]
2728
static void Dial_FromReadedCitHep(benchmark::State &state) {
2829
auto edgeSet = cit_graph_ptr->getEdgeSet();
2930
for (auto _ : state) {

benchmark/Dijkstra_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ BENCHMARK(Dijkstra_X)
2525
->Range((unsigned long)1, (unsigned long)1 << 18)
2626
->Complexity();
2727

28+
[[maybe_unused]]
2829
static void Dijkstra_FromReadedCitHep(benchmark::State &state) {
2930
auto edgeSet = cit_graph_ptr->getEdgeSet();
3031
for (auto _ : state) {

benchmark/FordFulkerson_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ BENCHMARK(FordFulkerson_X)
2626
->Range((unsigned long)1, (unsigned long)1 << 18)
2727
->Complexity();
2828

29+
[[maybe_unused]]
2930
static void FordFulkerson_FromReadedCitHep(benchmark::State &state) {
3031
auto edgeSet = cit_graph_ptr->getEdgeSet();
3132
for (auto _ : state) {

benchmark/Kosaraju_BM.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ BENCHMARK(Kosaraju_X)
2424
->Range((unsigned long)1, (unsigned long)1 << 18)
2525
->Complexity();
2626

27+
[[maybe_unused]]
2728
static void Kosaraju_FromReadedCitHep(benchmark::State &state) {
2829
auto edgeSet = cit_graph_ptr->getEdgeSet();
2930
for (auto _ : state) {

0 commit comments

Comments
 (0)