summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-03 13:39:39 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-01-03 13:39:39 (GMT)
commit9a1098f52eb7c19ed9c20164b05405a273dc2290 (patch)
treec17523fc258602e1ba01627cf248dc46bd1ac5be /Source/CPack/cpack.cxx
parent1e6bc6e5ee3dee7eff561407d0a7e39add4949ed (diff)
downloadCMake-9a1098f52eb7c19ed9c20164b05405a273dc2290.zip
CMake-9a1098f52eb7c19ed9c20164b05405a273dc2290.tar.gz
CMake-9a1098f52eb7c19ed9c20164b05405a273dc2290.tar.bz2
COMP: Remove warnings
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 41170f3..ef22f82 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -135,7 +135,6 @@ int main (int argc, char *argv[])
log.SetOutputPrefix("CPack: ");
log.SetVerbosePrefix("CPack Verbose: ");
- int res = 0;
cmSystemTools::EnableMSVCDebugHook();
if ( cmSystemTools::GetCurrentWorkingDirectory().size() == 0 )
@@ -321,7 +320,7 @@ int main (int argc, char *argv[])
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE, "Use generator: " << cpackGenerator->GetNameOfClass() << std::endl);
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE, "For project: " << projName << std::endl);
- res = cpackGenerator->ProcessGenerator();
+ int res = cpackGenerator->ProcessGenerator();
if ( !res )
{
cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Error when generating package: " << cpackProjectName.c_str() << std::endl);