diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-09 03:34:17 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-12-09 03:34:17 (GMT) |
commit | 39714fb179c5164ef96b251b82d08e930d6bdc50 (patch) | |
tree | a42cca2d5df2698992cfcad6bab9fa36d7cdde81 /Source/cmLocalUnixMakefileGenerator.cxx | |
parent | 9eed6b91cff9995e48b32285cc25269bd67e1280 (diff) | |
download | CMake-39714fb179c5164ef96b251b82d08e930d6bdc50.zip CMake-39714fb179c5164ef96b251b82d08e930d6bdc50.tar.gz CMake-39714fb179c5164ef96b251b82d08e930d6bdc50.tar.bz2 |
Rename variable to remove warning
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index bab9dfd..55d87eb 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -2578,16 +2578,16 @@ cmLocalUnixMakefileGenerator::CreateMakeVariable(const char* s, const char* s2) str1 = str1.substr(0, size - str2.size()); } char buffer[5]; - int i = 0; - sprintf(buffer, "%04d", i); + int ni = 0; + sprintf(buffer, "%04d", ni); ret = str1 + str2 + buffer; - while(m_ShortMakeVariableMap.count(ret) && i < 1000) + while(m_ShortMakeVariableMap.count(ret) && ni < 1000) { - ++i; - sprintf(buffer, "%04d", i); + ++ni; + sprintf(buffer, "%04d", ni); ret = str1 + str2 + buffer; } - if(i == 1000) + if(ni == 1000) { cmSystemTools::Error("Borland makefile varible length too long"); return unmodified; |