summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-08 19:18:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-02-08 19:18:36 (GMT)
commit5b8869faea87187743b7a1578f29b5c3223fee19 (patch)
treee1f53c23b50154b92ae53deb8c2850c0917779f7
parent68c004aa11e2a6e16ebbd20f954e0299a31c8d56 (diff)
parentc310450daf346aafe1e9b230752952228a7e7815 (diff)
downloadCMake-5b8869faea87187743b7a1578f29b5c3223fee19.zip
CMake-5b8869faea87187743b7a1578f29b5c3223fee19.tar.gz
CMake-5b8869faea87187743b7a1578f29b5c3223fee19.tar.bz2
Merge topic 'fix-clang-warnings'
c310450 Silence the may be used uninitialized warnings: initialize stuff.
-rw-r--r--Source/CPack/cmCPackOSXX11Generator.cxx2
-rw-r--r--Source/CPack/cmCPackPackageMakerGenerator.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackOSXX11Generator.cxx b/Source/CPack/cmCPackOSXX11Generator.cxx
index 2d4bb97..0e8cbc0 100644
--- a/Source/CPack/cmCPackOSXX11Generator.cxx
+++ b/Source/CPack/cmCPackOSXX11Generator.cxx
@@ -150,7 +150,7 @@ int cmCPackOSXX11Generator::PackageFiles()
// since we get random dashboard failures with this one
// try running it more than once
int numTries = 4;
- bool res;
+ bool res = false;
while(numTries > 0)
{
res = cmSystemTools::RunSingleCommand(dmgCmd.str().c_str(), &output,
diff --git a/Source/CPack/cmCPackPackageMakerGenerator.cxx b/Source/CPack/cmCPackPackageMakerGenerator.cxx
index ef81da8..0c4b1a6 100644
--- a/Source/CPack/cmCPackPackageMakerGenerator.cxx
+++ b/Source/CPack/cmCPackPackageMakerGenerator.cxx
@@ -320,7 +320,7 @@ int cmCPackPackageMakerGenerator::PackageFiles()
std::string output;
int retVal = 1;
int numTries = 4;
- bool res;
+ bool res = false;
while(numTries > 0)
{
res = cmSystemTools::RunSingleCommand(dmgCmd.str().c_str(), &output,