summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-12-19 08:56:13 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-12-19 08:56:13 (GMT)
commitac017f7aba06f99611d2dd98dd36ea0ef376dd8d (patch)
tree9f885c295fedeaddaca758c7a9c9c2c33eed4bb8 /Source/cmLocalGenerator.cxx
parent04136a558aae63b97284ddb4db626d79a3898d86 (diff)
downloadCMake-ac017f7aba06f99611d2dd98dd36ea0ef376dd8d.zip
CMake-ac017f7aba06f99611d2dd98dd36ea0ef376dd8d.tar.gz
CMake-ac017f7aba06f99611d2dd98dd36ea0ef376dd8d.tar.bz2
STYLE: fix warnings: comparison signed/unsigned, unused variable
Alex
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index bf91751..830f8f3 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1480,7 +1480,7 @@ bool cmLocalGenerator::GetLinkerArgs(std::string& rpath,
std::string& linkLibs,
cmTarget& tgt,
bool relink,
- int minRpathSize)
+ unsigned int minRpathSize)
{
rpath = "";
// collect all the flags needed for linking libraries
@@ -1658,16 +1658,14 @@ bool cmLocalGenerator::GetLinkerArgs(std::string& rpath,
}
}
- if (rpath.size()<minRpathSize)
+ while (rpath.size() < minRpathSize)
{
if (rpath.size()==0)
{
rpath += runtimeFlag;
}
- while (rpath.size() < minRpathSize)
- {
- rpath += runtimeSep;
- }
+
+ rpath += runtimeSep;
}
return true;
}