lose some build warnings

This commit is contained in:
Dominic Hamon 2021-11-19 19:54:05 +00:00
parent 91ed7eea68
commit 88ea9d9005

View File

@ -80,7 +80,7 @@ int fixture_setup = 0;
class FIXTURE_BECHMARK_NAME : public ::benchmark::Fixture { class FIXTURE_BECHMARK_NAME : public ::benchmark::Fixture {
public: public:
void SetUp(const ::benchmark::State& state) BENCHMARK_OVERRIDE { void SetUp(const ::benchmark::State&) BENCHMARK_OVERRIDE {
fixture_interaction::fixture_setup++; fixture_interaction::fixture_setup++;
} }
@ -92,7 +92,7 @@ BENCHMARK_F(FIXTURE_BECHMARK_NAME, BM_WithFixture)(benchmark::State& st) {
} }
} }
static void DoSetupWithFixture(const benchmark::State& state) { static void DoSetupWithFixture(const benchmark::State&) {
fixture_interaction::setup++; fixture_interaction::setup++;
} }
@ -110,7 +110,7 @@ namespace repetitions {
int setup = 0; int setup = 0;
} }
static void DoSetupWithRepetitions(const benchmark::State& state) { static void DoSetupWithRepetitions(const benchmark::State&) {
repetitions::setup++; repetitions::setup++;
} }
static void BM_WithRep(benchmark::State& state) { static void BM_WithRep(benchmark::State& state) {