Commit 39714fb1 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Rename variable to remove warning

parent 9eed6b91
...@@ -196,8 +196,8 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, ...@@ -196,8 +196,8 @@ void cmGlobalGenerator::EnableLanguage(const char* lang,
= mf->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION"); = mf->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
if (!versionValue || atof(versionValue) <= 1.4) if (!versionValue || atof(versionValue) <= 1.4)
{ {
std::string fpath = root + "/Modules/CMakeBackwardCompatibilityCXX.cmake"; std::string nfpath = root + "/Modules/CMakeBackwardCompatibilityCXX.cmake";
mf->ReadListFile(0,fpath.c_str()); mf->ReadListFile(0,nfpath.c_str());
} }
} }
} }
......
...@@ -2578,16 +2578,16 @@ cmLocalUnixMakefileGenerator::CreateMakeVariable(const char* s, const char* s2) ...@@ -2578,16 +2578,16 @@ cmLocalUnixMakefileGenerator::CreateMakeVariable(const char* s, const char* s2)
str1 = str1.substr(0, size - str2.size()); str1 = str1.substr(0, size - str2.size());
} }
char buffer[5]; char buffer[5];
int i = 0; int ni = 0;
sprintf(buffer, "%04d", i); sprintf(buffer, "%04d", ni);
ret = str1 + str2 + buffer; ret = str1 + str2 + buffer;
while(m_ShortMakeVariableMap.count(ret) && i < 1000) while(m_ShortMakeVariableMap.count(ret) && ni < 1000)
{ {
++i; ++ni;
sprintf(buffer, "%04d", i); sprintf(buffer, "%04d", ni);
ret = str1 + str2 + buffer; ret = str1 + str2 + buffer;
} }
if(i == 1000) if(ni == 1000)
{ {
cmSystemTools::Error("Borland makefile varible length too long"); cmSystemTools::Error("Borland makefile varible length too long");
return unmodified; return unmodified;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment