fix some compiler warnings hopefully
This commit is contained in:
parent
dad83f4d3c
commit
86c32e96db
|
@ -2517,7 +2517,7 @@ cmLocalUnixMakefileGenerator::CreateMakeVariable(const char* s, const char* s2)
|
||||||
std::string ret = unmodified;
|
std::string ret = unmodified;
|
||||||
// if the string is greater the 32 chars it is an invalid vairable name
|
// if the string is greater the 32 chars it is an invalid vairable name
|
||||||
// for borland make
|
// for borland make
|
||||||
if(ret.size() > m_MakefileVariableSize)
|
if(static_cast<int>(ret.size()) > m_MakefileVariableSize)
|
||||||
{
|
{
|
||||||
int keep = m_MakefileVariableSize - 8;
|
int keep = m_MakefileVariableSize - 8;
|
||||||
int size = keep + 3;
|
int size = keep + 3;
|
||||||
|
@ -2525,11 +2525,11 @@ cmLocalUnixMakefileGenerator::CreateMakeVariable(const char* s, const char* s2)
|
||||||
std::string str2 = s2;
|
std::string str2 = s2;
|
||||||
// we must shorten the combined string by 4 charactors
|
// we must shorten the combined string by 4 charactors
|
||||||
// keep no more than 24 charactors from the second string
|
// keep no more than 24 charactors from the second string
|
||||||
if(str2.size() > keep)
|
if(static_cast<int>(str2.size()) > keep)
|
||||||
{
|
{
|
||||||
str2 = str2.substr(0, keep);
|
str2 = str2.substr(0, keep);
|
||||||
}
|
}
|
||||||
if(str1.size() + str2.size() > size)
|
if(static_cast<int>(str1.size()) + static_cast<int>(str2.size()) > size)
|
||||||
{
|
{
|
||||||
str1 = str1.substr(0, size - str2.size());
|
str1 = str1.substr(0, size - str2.size());
|
||||||
}
|
}
|
||||||
|
|
|
@ -811,8 +811,10 @@ bool cmake::CacheVersionMatches()
|
||||||
const char* minv = m_CacheManager->GetCacheValue("CMAKE_CACHE_MINOR_VERSION");
|
const char* minv = m_CacheManager->GetCacheValue("CMAKE_CACHE_MINOR_VERSION");
|
||||||
const char* relv = m_CacheManager->GetCacheValue("CMAKE_CACHE_RELEASE_VERSION");
|
const char* relv = m_CacheManager->GetCacheValue("CMAKE_CACHE_RELEASE_VERSION");
|
||||||
bool cacheSameCMake = false;
|
bool cacheSameCMake = false;
|
||||||
if(majv && atoi(majv) == cmMakefile::GetMajorVersion()
|
if(majv &&
|
||||||
&& minv && atoi(minv) == cmMakefile::GetMinorVersion()
|
atoi(majv) == static_cast<int>(cmMakefile::GetMajorVersion())
|
||||||
|
&& minv &&
|
||||||
|
atoi(minv) == static_cast<int>(cmMakefile::GetMinorVersion())
|
||||||
&& relv && (strcmp(relv, cmMakefile::GetReleaseVersion()) == 0))
|
&& relv && (strcmp(relv, cmMakefile::GetReleaseVersion()) == 0))
|
||||||
{
|
{
|
||||||
cacheSameCMake = true;
|
cacheSameCMake = true;
|
||||||
|
|
Loading…
Reference in New Issue