diff --git a/Source/CTest/cmCTestRunScriptCommand.cxx b/Source/CTest/cmCTestRunScriptCommand.cxx index 53ce3d4027..274778a514 100644 --- a/Source/CTest/cmCTestRunScriptCommand.cxx +++ b/Source/CTest/cmCTestRunScriptCommand.cxx @@ -22,7 +22,7 @@ bool cmCTestRunScriptCommand::InitialPass(std::vector const& args) { if(args.size() < 1 ) { - m_CTestScriptHandler->RunCurrentScript(m_CTest); + m_CTestScriptHandler->RunCurrentScript(); return true; } diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index f34b45b9a3..410d11db6f 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -365,12 +365,12 @@ int cmCTestScriptHandler::RunConfigurationScript(cmCTest* ctest, } if (!m_ScriptHasRun) { - return this->RunCurrentScript(ctest); + return this->RunCurrentScript(); } return result; } -int cmCTestScriptHandler::RunCurrentScript(cmCTest* ctest) +int cmCTestScriptHandler::RunCurrentScript() { int result; diff --git a/Source/CTest/cmCTestScriptHandler.h b/Source/CTest/cmCTestScriptHandler.h index 7b96350742..4c2eb83871 100644 --- a/Source/CTest/cmCTestScriptHandler.h +++ b/Source/CTest/cmCTestScriptHandler.h @@ -86,7 +86,7 @@ public: * Run a script */ static bool RunScript(cmCTest* ctest, const char *script); - int RunCurrentScript(cmCTest* ctest); + int RunCurrentScript(); /* * Empty Binary Directory diff --git a/Source/CTest/cmCTestSleepCommand.cxx b/Source/CTest/cmCTestSleepCommand.cxx index ec585f1a30..d3f0c6f4f6 100644 --- a/Source/CTest/cmCTestSleepCommand.cxx +++ b/Source/CTest/cmCTestSleepCommand.cxx @@ -17,6 +17,7 @@ #include "cmCTestSleepCommand.h" #include "cmCTestScriptHandler.h" +#include // required for atoi bool cmCTestSleepCommand::InitialPass( std::vector const& args)