diff --git a/src/PylogFormatter.h b/src/PylogFormatter.h
index 521ca612d3d5f6eb15816fa10a00ae77b9ed6bf5..94dba050c6be1f3598b33e622437dc120ba0f684 100644 (file)
--- a/src/PylogFormatter.h
+++ b/src/PylogFormatter.h
#ifndef PYLOG_FORMATTER_H_SEEN
#define PYLOG_FORMATTER_H_SEEN
+#include <cstring>
#include <cxxtest/Flags.h>
#ifndef _CXXTEST_HAVE_STD
{}
virtual ~PylogFormatter() { delete outputStream(); }
- virtual void enterWorld( const WorldDescription & desc )
+ virtual void enterWorld( const WorldDescription & /*desc*/ )
{
(*_o) << "**************************************************" << endl;
_o->flush();
virtual void leaveWorld( const WorldDescription & desc )
{
+ using std::strlen;
unsigned int skippedCount = 0;
unsigned int failedCount = 0;
unsigned int warnedCount = 0;
(*_o) << test.suiteName() << "_|_" << test.testName();
(*_o) << " ";
- int sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1;
- for ( int z = sent; z < 56; z++ ) {
+ unsigned const sent = strlen( test.suiteName() ) + strlen( test.testName() ) + 1;
+ for ( unsigned z = sent; z < 56; z++ ) {
(*_o) << " ";
}
return _o;
}
- void _traceCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+ void _traceCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
_runPassed = false;
if ( _suiteIndex < (int)_status.size() ) {
if ( _testIndex < (int)_status[_suiteIndex].size() ) {
}
}
- void _warnCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+ void _warnCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
_runPassed = false;
if ( _suiteIndex < (int)_status.size() ) {
if ( _testIndex < (int)_status[_suiteIndex].size() ) {
}
}
- void _failCurrent( const char* file, unsigned line, const CXXTEST_STD(string)& errMsg ) {
+ void _failCurrent( const char* /*file*/, unsigned /*line*/, const CXXTEST_STD(string)& errMsg ) {
_runPassed = false;
if ( _suiteIndex < (int)_status.size() ) {
if ( _testIndex < (int)_status[_suiteIndex].size() ) {
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
#endif // PYLOG_FORMATTER_H_SEEN