mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
Fixed more warnings and applied workaround for getting to std::numeric_limits without clashing with Windows' min() and max() macros.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Catch
|
||||
delete it->second;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
#ifdef __GNUC__
|
||||
#define ATTRIBUTE_NORETURN __attribute__ ((noreturn))
|
||||
@@ -61,4 +61,5 @@ namespace Catch
|
||||
#define ATTRIBUTE_NORETURN
|
||||
#endif
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_COMMON_H_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_COMMON_H_INCLUDED
|
||||
|
||||
|
@@ -36,6 +36,9 @@ namespace Catch
|
||||
|
||||
static Hub& me();
|
||||
|
||||
Hub( const Hub& );
|
||||
void operator=( const Hub& );
|
||||
|
||||
public:
|
||||
|
||||
static void setRunner
|
||||
@@ -85,4 +88,4 @@ namespace Catch
|
||||
};
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_HUB_H_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_HUB_H_INCLUDED
|
||||
|
@@ -57,4 +57,4 @@ namespace Catch
|
||||
|
||||
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_INTERFACES_TESTCASE_H_INCLUDED
|
||||
|
@@ -51,7 +51,7 @@ namespace Catch
|
||||
if( ( config.listWhat() & Config::List::All ) == 0 )
|
||||
{
|
||||
std::cerr << "Unknown list type" << std::endl;
|
||||
return std::numeric_limits<int>::max();
|
||||
return (std::numeric_limits<int>::max)();
|
||||
}
|
||||
|
||||
if( config.getReporter() )
|
||||
|
@@ -66,4 +66,4 @@ namespace Catch
|
||||
};
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRY_HPP_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_REPORTER_REGISTRY_HPP_INCLUDED
|
||||
|
@@ -53,7 +53,7 @@ namespace Catch
|
||||
if( pbase() == epptr() )
|
||||
m_writer( std::string( 1, static_cast<char>( c ) ) );
|
||||
else
|
||||
sputc( c );
|
||||
sputc( static_cast<char>( c ) );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -87,4 +87,4 @@ namespace Catch
|
||||
};
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_STREAM_HPP_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_STREAM_HPP_INCLUDED
|
||||
|
@@ -159,4 +159,4 @@ namespace Catch
|
||||
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_TESTCASEINFO_HPP_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_TESTCASEINFO_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user