Skip to content

Commit

Permalink
Fix -Wunused-but-set-variable with clane 18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed May 15, 2024
1 parent 355cff8 commit 53e6306
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmark/bench_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ void test_try1()
boost::timer::nanosecond_type t = chrono.elapsed().wall;
cout << left << setw(20) <<"try1 time"<< right <<":" << setw(5) << t
<< ", = " << t / tpf << " * printf "
<< ", = " << t / tstream << " * nullStream \n";
<< ", = " << t / tstream << " * nullStream"
<< ", accum = " << dummy << endl;
}

void test_try2()
Expand All @@ -163,7 +164,8 @@ void test_try2()
boost::timer::nanosecond_type t = chrono.elapsed().wall;
cout << left << setw(20) <<"try2 time"<< right <<":" << setw(5) << t
<< ", = " << t / tpf << " * printf "
<< ", = " << t / tstream << " * nullStream \n";
<< ", = " << t / tstream << " * nullStream"
<< ", accum = " << dummy << endl;
}

void do_stream(std::ostream& os) {
Expand Down

0 comments on commit 53e6306

Please sign in to comment.