1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

Dan McGee <dpmcgee@gmail.com>

* fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
This commit is contained in:
Aaron Griffin 2007-01-18 16:09:34 +00:00
parent f6a76dac12
commit 46e26ac5c8

View File

@ -253,9 +253,9 @@ int _alpm_add_prepare(pmtrans_t *trans, pmdb_t *db, pmlist_t **data)
/* Attempt to resolve conflicts */
QUESTION(trans, PM_TRANS_CONV_CONFLICT_PKG, miss->target, miss->depend.name, NULL, &skip_this);
if(skip_this) {
pmpkg_t *pkg = NULL;
lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)&pkg);
FREEPKG(pkg);
pmpkg_t **pkg = NULL;
lp = _alpm_list_remove(lp, (void *)miss->depend.name, name_cmp, (void **)pkg);
FREEPKG(*pkg);
}
}
if(lp != NULL) {