Temporary fix for new warnings from gcc 4.6
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
3f269503d5
commit
4a3cd364d0
2 changed files with 4 additions and 2 deletions
|
@ -254,7 +254,7 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
|
||||||
/* attempt to stat the package file, ensure it exists */
|
/* attempt to stat the package file, ensure it exists */
|
||||||
if(stat(pkgfile, &st) == 0) {
|
if(stat(pkgfile, &st) == 0) {
|
||||||
char *pgpfile;
|
char *pgpfile;
|
||||||
int ret;
|
int sig_ret;
|
||||||
|
|
||||||
newpkg = _alpm_pkg_new();
|
newpkg = _alpm_pkg_new();
|
||||||
if(newpkg == NULL) {
|
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));
|
MALLOC(pgpfile, strlen(pkgfile) + 5, RET_ERR(PM_ERR_MEMORY, NULL));
|
||||||
sprintf(pgpfile, "%s.sig", pkgfile);
|
sprintf(pgpfile, "%s.sig", pkgfile);
|
||||||
/* TODO: do something with ret value */
|
/* 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);
|
FREE(pgpfile);
|
||||||
} else {
|
} else {
|
||||||
/* couldn't stat the pkgfile, return an error */
|
/* couldn't stat the pkgfile, return an error */
|
||||||
|
|
|
@ -381,6 +381,7 @@ const pmpgpsig_t *_alpm_db_pgpsig(pmdb_t *db)
|
||||||
|
|
||||||
/* TODO: do something with ret value */
|
/* TODO: do something with ret value */
|
||||||
ret = _alpm_load_signature(sigfile, &(db->pgpsig));
|
ret = _alpm_load_signature(sigfile, &(db->pgpsig));
|
||||||
|
(void)ret;
|
||||||
|
|
||||||
FREE(sigfile);
|
FREE(sigfile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue