diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-28 03:48:26 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-28 03:48:26 +0200 |
commit | 4a3cd364d00b6889b24a16542618f1e2c14b86ac (patch) | |
tree | 8f3e45c68371438394e6f623e01c9377e62f6c5b /lib/libalpm | |
parent | 3f269503d53811cf45037022a263f2447e427a0b (diff) | |
download | pacman-4a3cd364d00b6889b24a16542618f1e2c14b86ac.tar.gz pacman-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')
-rw-r--r-- | lib/libalpm/be_package.c | 5 | ||||
-rw-r--r-- | lib/libalpm/db.c | 1 |
2 files changed, 4 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 */ diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index b2144354..55b711fb 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -381,6 +381,7 @@ const pmpgpsig_t *_alpm_db_pgpsig(pmdb_t *db) /* TODO: do something with ret value */ ret = _alpm_load_signature(sigfile, &(db->pgpsig)); + (void)ret; FREE(sigfile); } |