[Aptitude-devel] [PATCH 3/3] Fix up download_install_manager.cc for -Werror=uninitialized
Marcel Partap
mpartap at gmx.net
Fri Jun 29 13:43:35 BST 2012
---
src/generic/apt/download_install_manager.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/generic/apt/download_install_manager.cc b/src/generic/apt/download_install_manager.cc
index a499faa..eb94c9b 100644
--- a/src/generic/apt/download_install_manager.cc
+++ b/src/generic/apt/download_install_manager.cc
@@ -171,7 +171,8 @@ download_manager::result download_install_manager::finish_pre_dpkg(pkgAcquire::R
{
case pkgPackageManager::Completed: rval = success; break;
case pkgPackageManager::Failed: rval = failure; break;
- case pkgPackageManager::Incomplete: rval = do_again; break;
+ case pkgPackageManager::Incomplete:
+ default: rval = do_again; break;
}
return rval;
@@ -219,6 +220,7 @@ void download_install_manager::finish_post_dpkg(pkgPackageManager::OrderResult d
rval = success;
break;
case pkgPackageManager::Incomplete:
+ default:
rval = do_again;
break;
}
@@ -302,6 +304,7 @@ void download_install_manager::finish(pkgAcquire::RunResult result,
res = pkgPackageManager::Incomplete;
break;
case failure:
+ default:
res = pkgPackageManager::Failed;
break;
}
--
1.7.10.4
More information about the Aptitude-devel
mailing list