From 4a3cd364d00b6889b24a16542618f1e2c14b86ac Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 27 Mar 2011 20:48:26 -0500 Subject: Temporary fix for new warnings from gcc 4.6 Signed-off-by: Dan McGee --- lib/libalpm/be_package.c | 5 +++-- lib/libalpm/db.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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); } -- cgit v1.2.3-70-g09d2