summaryrefslogtreecommitdiff
path: root/src/pacman/upgrade.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-27 10:10:08 -0500
committerDan McGee <dan@archlinux.org>2011-06-27 10:10:08 -0500
commitf01c6f814a278a3d024d34fed0c219c8cb1e1e33 (patch)
tree759833d3d7c46bca4f962c5fd442ab3f37d85b14 /src/pacman/upgrade.c
parent77a09c92c66bd06440be0ccb75daf07c620acbee (diff)
downloadpacman-f01c6f814a278a3d024d34fed0c219c8cb1e1e33.tar.xz
Fix several -Wshadow warnings
Only one of these looked like a real red flag, in find_requiredby(), but it doesn't hurt to fix several of them up anyway. Unfortunately, we can't turn this on universally due to things like the sync(), remove(), etc. builtins which we often use as variable names. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/upgrade.c')
-rw-r--r--src/pacman/upgrade.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c
index 6587671b..c1f72f6d 100644
--- a/src/pacman/upgrade.c
+++ b/src/pacman/upgrade.c
@@ -166,7 +166,6 @@ int pacman_upgrade(alpm_list_t *targets)
pm_fprintf(stderr, PM_LOG_ERROR, _("failed to commit transaction (%s)\n"),
alpm_strerror(err));
switch(err) {
- alpm_list_t *i;
case PM_ERR_FILE_CONFLICTS:
for(i = data; i; i = alpm_list_next(i)) {
pmfileconflict_t *conflict = alpm_list_getdata(i);