summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/be_package.c5
-rw-r--r--lib/libalpm/db.c1
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);
}