summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-27 20:48:26 -0500
committerDan McGee <dan@archlinux.org>2011-03-27 20:48:26 -0500
commit4a3cd364d00b6889b24a16542618f1e2c14b86ac (patch)
tree8f3e45c68371438394e6f623e01c9377e62f6c5b /lib/libalpm/be_package.c
parent3f269503d53811cf45037022a263f2447e427a0b (diff)
downloadpacman-4a3cd364d00b6889b24a16542618f1e2c14b86ac.tar.xz
Temporary fix for new warnings from gcc 4.6
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_package.c')
-rw-r--r--lib/libalpm/be_package.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c
index e86bffe6..9316cdfe 100644
--- a/lib/libalpm/be_package.c
+++ b/lib/libalpm/be_package.c
@@ -254,7 +254,7 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
/* attempt to stat the package file, ensure it exists */
if(stat(pkgfile, &st) == 0) {
char *pgpfile;
- int ret;
+ int sig_ret;
newpkg = _alpm_pkg_new();
if(newpkg == NULL) {
@@ -267,7 +267,8 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
MALLOC(pgpfile, strlen(pkgfile) + 5, RET_ERR(PM_ERR_MEMORY, NULL));
sprintf(pgpfile, "%s.sig", pkgfile);
/* TODO: do something with ret value */
- ret = _alpm_load_signature(pgpfile, &(newpkg->pgpsig));
+ sig_ret = _alpm_load_signature(pgpfile, &(newpkg->pgpsig));
+ (void)sig_ret;
FREE(pgpfile);
} else {
/* couldn't stat the pkgfile, return an error */