diff options
author | David Cole <david.cole@kitware.com> | 2011-02-03 15:21:32 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-02-03 15:21:32 (GMT) |
commit | c310450daf346aafe1e9b230752952228a7e7815 (patch) | |
tree | 445440cf63e69f69f8121e04fd740dc33b900f67 /Source/CPack | |
parent | 26eba9cb9c1cbdc7739a9a26aeb4b8f00802f56d (diff) | |
download | CMake-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.cxx | 2 | ||||
-rw-r--r-- | Source/CPack/cmCPackPackageMakerGenerator.cxx | 2 |
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, |