diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-11-17 22:31:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-11-17 22:31:12 (GMT) |
commit | 86c32e96db5360e20e95c121f825f73e6bd0b0fe (patch) | |
tree | e7fafcd15cf2859ecc788832cefd8dcc720fbd65 /Source/cmake.cxx | |
parent | dad83f4d3c0741e6ea9b2deafe839c4dfefdaff3 (diff) | |
download | CMake-86c32e96db5360e20e95c121f825f73e6bd0b0fe.zip CMake-86c32e96db5360e20e95c121f825f73e6bd0b0fe.tar.gz CMake-86c32e96db5360e20e95c121f825f73e6bd0b0fe.tar.bz2 |
fix some compiler warnings hopefully
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 3e440fe..b57745f 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -811,8 +811,10 @@ bool cmake::CacheVersionMatches() const char* minv = m_CacheManager->GetCacheValue("CMAKE_CACHE_MINOR_VERSION"); const char* relv = m_CacheManager->GetCacheValue("CMAKE_CACHE_RELEASE_VERSION"); bool cacheSameCMake = false; - if(majv && atoi(majv) == cmMakefile::GetMajorVersion() - && minv && atoi(minv) == cmMakefile::GetMinorVersion() + if(majv && + atoi(majv) == static_cast<int>(cmMakefile::GetMajorVersion()) + && minv && + atoi(minv) == static_cast<int>(cmMakefile::GetMinorVersion()) && relv && (strcmp(relv, cmMakefile::GetReleaseVersion()) == 0)) { cacheSameCMake = true; |