diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-25 11:59:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-25 11:59:57 (GMT) |
commit | 945c4a8b5b2e0650478f6bc67029d9481207702d (patch) | |
tree | ff00b9bb59ecaae535ad58542420488f719fabe3 | |
parent | 0c948312edfee7cf3e44c167bdc20f86b8f60266 (diff) | |
download | CMake-945c4a8b5b2e0650478f6bc67029d9481207702d.zip CMake-945c4a8b5b2e0650478f6bc67029d9481207702d.tar.gz CMake-945c4a8b5b2e0650478f6bc67029d9481207702d.tar.bz2 |
WAR: remove warnings for .NET compiler
-rw-r--r-- | Source/ccommand.cxx | 2 | ||||
-rw-r--r-- | Source/cmCMakeMinimumRequired.cxx | 2 | ||||
-rw-r--r-- | Source/cmOptionCommand.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Source/ccommand.cxx b/Source/ccommand.cxx index b51939a..d9f2ccf 100644 --- a/Source/ccommand.cxx +++ b/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)" diff --git a/Source/cmCMakeMinimumRequired.cxx b/Source/cmCMakeMinimumRequired.cxx index a8e89e8..6396532 100644 --- a/Source/cmCMakeMinimumRequired.cxx +++ b/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) diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx index 4478a21..7af7d95 100644 --- a/Source/cmOptionCommand.cxx +++ b/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 += " "; |