ck_spinlock: Fix strict aliasing issue in unlock (no-op).

For builds with -Werror. Not pointed out by Wez Furlong <wez@f....>.
ck_pring
Samy Al Bahra 12 years ago
parent 82bc4f788b
commit 2f52ace54c

@ -581,7 +581,7 @@ ck_spinlock_ticket_unlock(struct ck_spinlock_ticket *ticket)
{
ck_pr_fence_memory();
CK_SPINLOCK_TICKET_INC((CK_SPINLOCK_TICKET_TYPE_BASE *)&ticket->value);
CK_SPINLOCK_TICKET_INC((CK_SPINLOCK_TICKET_TYPE_BASE *)(void *)&ticket->value);
return;
}

Loading…
Cancel
Save