1
0
Эх сурвалжийг харах

COMP: fix some compiler warnings/errors

Ken Martin 21 жил өмнө
parent
commit
bf3d774645

+ 1 - 1
Source/CTest/cmCTestRunScriptCommand.cxx

@@ -22,7 +22,7 @@ bool cmCTestRunScriptCommand::InitialPass(std::vector<std::string> const& args)
 {
   if(args.size() < 1 )
     {
-    m_CTestScriptHandler->RunCurrentScript(m_CTest);
+    m_CTestScriptHandler->RunCurrentScript();
     return true;
     }
 

+ 2 - 2
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;
 

+ 1 - 1
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

+ 1 - 0
Source/CTest/cmCTestSleepCommand.cxx

@@ -17,6 +17,7 @@
 #include "cmCTestSleepCommand.h"
 
 #include "cmCTestScriptHandler.h"
+#include <stdlib.h> // required for atoi
 
 bool cmCTestSleepCommand::InitialPass(
   std::vector<std::string> const& args)