From 915f097880ee71baede6a965a53ffb6ae4a636b3 Mon Sep 17 00:00:00 2001 From: Torsten Blank Date: Mon, 11 Apr 2016 12:00:09 +0200 Subject: [PATCH] fixed some problems, when compiling with very strict compile options --- src/tap.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/tap.h b/src/tap.h index 379d04a..d8516f6 100644 --- a/src/tap.h +++ b/src/tap.h @@ -101,24 +101,24 @@ class TestResult { return skip; } - void setComment(const std::string& comment) { - this->comment = comment; + void setComment(const std::string& _comment) { + this->comment = _comment; } - void setName(const std::string& name) { - this->name = name; + void setName(const std::string& _name) { + this->name = _name; } - void setNumber(int number) { - this->number = number; + void setNumber(int _number) { + this->number = _number; } - void setStatus(const std::string& status) { - this->status = status; + void setStatus(const std::string& _status) { + this->status = _status; } - void setSkip(bool skip) { - this->skip = skip; + void setSkip(bool _skip) { + this->skip = _skip; } std::string toString() const { @@ -224,7 +224,7 @@ class TapListener: public ::testing::EmptyTestEventListener { this->addTapTestResult(testInfo); } - virtual void OnTestProgramEnd(const testing::UnitTest& unit_test) { + virtual void OnTestProgramEnd(const testing::UnitTest& /* unit_test */) { //--- Write the count and the word. std::map::const_iterator ci; for (ci = this->testCaseTestResultMap.begin();