summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-02-03 15:21:32 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-02-03 15:21:32 (GMT)
commitc310450daf346aafe1e9b230752952228a7e7815 (patch)
tree445440cf63e69f69f8121e04fd740dc33b900f67 /Source/CPack
parent26eba9cb9c1cbdc7739a9a26aeb4b8f00802f56d (diff)
downloadCMake-c310450daf346aafe1e9b230752952228a7e7815.zip
CMake-c310450daf346aafe1e9b230752952228a7e7815.tar.gz
CMake-c310450daf346aafe1e9b230752952228a7e7815.tar.bz2
Silence the may be used uninitialized warnings: initialize stuff.
Diffstat (limited to 'Source/CPack')
-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,