Cleaned up some more warnings

This commit is contained in:
Phil Nash 2010-12-28 17:21:29 +00:00
parent 3000f6a3b1
commit 9a79ee7958
4 changed files with 7 additions and 7 deletions

View File

@ -36,7 +36,7 @@ TEST_CASE( "succeeding/Misc/Sections/nested", "nested SECTION tests" )
SECTION( "s1", "doesn't equal" )
{
REQUIRE( a != b ) "a should not equal b";
REQUIRE( a != b );
REQUIRE( b != a );
SECTION( "s2", "not equal" )

View File

@ -101,11 +101,11 @@ namespace Catch
m_currentStats = &m_testSuiteStats;
}
virtual void StartSection( const std::string& sectionName, const std::string description )
virtual void StartSection( const std::string& /*sectionName*/, const std::string /*description*/ )
{
}
virtual void EndSection( const std::string& sectionName, std::size_t succeeded, std::size_t failed )
virtual void EndSection( const std::string& /*sectionName*/, std::size_t /*succeeded*/, std::size_t /*failed*/ )
{
}

View File

@ -58,7 +58,7 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
virtual void EndGroup( const std::string& groupName, std::size_t succeeded, std::size_t failed )
virtual void EndGroup( const std::string& /*groupName*/, std::size_t succeeded, std::size_t failed )
{
m_xml.scopedElement( "OverallResults" )
.writeAttribute( "successes", succeeded )
@ -75,7 +75,7 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
virtual void EndSection( const std::string& sectionName, std::size_t succeeded, std::size_t failed )
virtual void EndSection( const std::string& /*sectionName*/, std::size_t succeeded, std::size_t failed )
{
m_xml.scopedElement( "OverallResults" )
.writeAttribute( "successes", succeeded )
@ -138,7 +138,7 @@ namespace Catch
}
///////////////////////////////////////////////////////////////////////////
virtual void EndTestCase( const Catch::TestCaseInfo&, const std::string& stdOut, const std::string& stdErr )
virtual void EndTestCase( const Catch::TestCaseInfo&, const std::string& /*stdOut*/, const std::string& /*stdErr*/ )
{
m_xml.scopedElement( "OverallResult" ).writeAttribute( "success", m_currentTestSuccess );
m_xml.endElement();

View File

@ -67,7 +67,7 @@ namespace Detail
template<typename T>
struct StringMaker<T, false>
{
static std::string apply( const T& value )
static std::string apply( const T& )
{
return "{?}";
}