1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 09:51:50 -05:00

Temporary fix for new warnings from gcc 4.6

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-03-27 20:48:26 -05:00
parent 3f269503d5
commit 4a3cd364d0
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -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);
}