mirror of
https://github.com/catchorg/Catch2.git
synced 2025-02-17 03:43:29 +01:00
Fixed some warnings
This commit is contained in:
parent
4f19705e09
commit
73e1bc20bc
@ -292,4 +292,4 @@ TEST_CASE( "./sameName", "Tests with the same name are not allowed" )
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
namespace Catch{
|
namespace Catch{
|
||||||
|
|
||||||
std::size_t EmbeddedRunner::runMatching( const std::string& rawTestSpec, const std::string& reporter ) {
|
std::size_t EmbeddedRunner::runMatching( const std::string& rawTestSpec, const std::string& ) {
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
Config config;
|
Config config;
|
||||||
config.setStreamBuf( oss.rdbuf() );
|
config.setStreamBuf( oss.rdbuf() );
|
||||||
|
@ -27,7 +27,7 @@ namespace Catch {
|
|||||||
addRecorder( recordSections );
|
addRecorder( recordSections );
|
||||||
}
|
}
|
||||||
|
|
||||||
MockReporter( const IReporterConfig& config ) {
|
MockReporter( const IReporterConfig& ) {
|
||||||
recordAll();
|
recordAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,21 +55,21 @@ namespace Catch {
|
|||||||
|
|
||||||
virtual void StartTesting() {}
|
virtual void StartTesting() {}
|
||||||
|
|
||||||
virtual void EndTesting( const Totals& totals ) {}
|
virtual void EndTesting( const Totals& ) {}
|
||||||
|
|
||||||
virtual void StartGroup( const std::string& groupName ) {
|
virtual void StartGroup( const std::string& groupName ) {
|
||||||
openLabel( recordGroups, groupName );
|
openLabel( recordGroups, groupName );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EndGroup( const std::string& groupName, const Totals& totals ) {
|
virtual void EndGroup( const std::string& groupName, const Totals& ) {
|
||||||
closeLabel( recordGroups, groupName );
|
closeLabel( recordGroups, groupName );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void StartSection( const std::string& sectionName, const std::string& description ) {
|
virtual void StartSection( const std::string& sectionName, const std::string& ) {
|
||||||
openLabel( recordSections, sectionName );
|
openLabel( recordSections, sectionName );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void EndSection( const std::string& sectionName, const Counts& assertions ) {
|
virtual void EndSection( const std::string& sectionName, const Counts& ) {
|
||||||
closeLabel( recordSections, sectionName );
|
closeLabel( recordSections, sectionName );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,9 +78,9 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void EndTestCase( const TestCaseInfo& testInfo,
|
virtual void EndTestCase( const TestCaseInfo& testInfo,
|
||||||
const Totals& totals,
|
const Totals&,
|
||||||
const std::string& stdOut,
|
const std::string&,
|
||||||
const std::string& stdErr ) {
|
const std::string& ) {
|
||||||
closeLabel( recordTestCases, testInfo.getName() );
|
closeLabel( recordTestCases, testInfo.getName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -376,9 +376,13 @@
|
|||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
||||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
|
||||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
|
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||||
|
GCC_WARN_PEDANTIC = YES;
|
||||||
GCC_WARN_SHADOW = YES;
|
GCC_WARN_SHADOW = YES;
|
||||||
|
GCC_WARN_UNUSED_PARAMETER = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
@ -401,9 +405,13 @@
|
|||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
|
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
|
||||||
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
|
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||||
|
GCC_WARN_PEDANTIC = YES;
|
||||||
GCC_WARN_SHADOW = YES;
|
GCC_WARN_SHADOW = YES;
|
||||||
|
GCC_WARN_UNUSED_PARAMETER = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
Loading…
Reference in New Issue
Block a user