Browse Source

WAR: remove warnings for .NET compiler

Bill Hoffman 23 years ago
parent
commit
945c4a8b5b
3 changed files with 3 additions and 3 deletions
  1. 1 1
      Source/ccommand.cxx
  2. 1 1
      Source/cmCMakeMinimumRequired.cxx
  3. 1 1
      Source/cmOptionCommand.cxx

+ 1 - 1
Source/ccommand.cxx

@@ -102,7 +102,7 @@ int main(int ac, char** av)
 
       double clocks_per_sec = (double)CLOCKS_PER_SEC;
       std::cout << "Elapsed time: " 
-                << (time_t)(time_finish - time_start) << " s. (time)"
+                << (long)(time_finish - time_start) << " s. (time)"
                 << ", " 
                 << (double)(clock_finish - clock_start) / clocks_per_sec 
                 << " s. (clock)"

+ 1 - 1
Source/cmCMakeMinimumRequired.cxx

@@ -30,7 +30,7 @@ bool cmCMakeMinimumRequired::InitialPass(std::vector<std::string> const& args)
     m_Makefile->AddDefinition("CMAKE_MINIMUM_REQUIRED_VERSION", args[1].c_str());
     }
   float version = float(m_Makefile->GetMajorVersion());
-  version += (float(m_Makefile->GetMinorVersion()) * .1);
+  version += (float(m_Makefile->GetMinorVersion()) * (float).1);
   float reqVersion = 0;
   sscanf(args[1].c_str(), "%f", &reqVersion);
   if(reqVersion > version)

+ 1 - 1
Source/cmOptionCommand.cxx

@@ -37,7 +37,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args)
   if(argError)
     {
     std::string m = "called with incorrect number of arguments: ";
-    for(int i =0; i < args.size(); ++i)
+    for(size_t i =0; i < args.size(); ++i)
       {
       m += args[i];
       m += " ";