aboutsummaryrefslogtreecommitdiff
path: root/test/skip_with_error_test.cc
diff options
context:
space:
mode:
authordominc8 <kormandominik@gmail.com>2021-11-25 16:47:44 +0100
committerGitHub <noreply@github.com>2021-11-25 15:47:44 +0000
commit680d3fdbb594296269a0bb8ae63d5ac27bdaac8a (patch)
tree99123cf638a8b04636abe3bfea9d711efd3a6837 /test/skip_with_error_test.cc
parentd6ba952fc15dbdc54fda46b99babdb9db5fbe58b (diff)
downloadgoogle-benchmark-680d3fdbb594296269a0bb8ae63d5ac27bdaac8a.tar.gz
Add clang-tidy check (#1290)
* Add clang-tidy.yml and .clang-tidy * Add mention to authors/contributors * Temp fix 2 clang-tidy issues * Enable clang-tidy on pull requests * Exclude gtest source files from clang-tidy
Diffstat (limited to 'test/skip_with_error_test.cc')
-rw-r--r--test/skip_with_error_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/skip_with_error_test.cc b/test/skip_with_error_test.cc
index 4d89671..5e9700d 100644
--- a/test/skip_with_error_test.cc
+++ b/test/skip_with_error_test.cc
@@ -119,7 +119,7 @@ ADD_CASES("BM_error_during_running", {{"/1/threads:1", true, "error message"},
void BM_error_during_running_ranged_for(benchmark::State& state) {
assert(state.max_iterations > 3 && "test requires at least a few iterations");
- int first_iter = true;
+ [[maybe_unused]] bool first_iter = true;
// NOTE: Users should not write the for loop explicitly.
for (auto It = state.begin(), End = state.end(); It != End; ++It) {
if (state.range(0) == 1) {