eina_threadqueue - fix const ptr warning on spinlocks if atomic disabled

atomics SHOULDNT be disabled anyway, but if they are... fix this
warning. (no real bug)
This commit is contained in:
Carsten Haitzler 2016-08-05 13:42:50 +09:00
parent 013c0702f4
commit 6b6823e5af
1 changed files with 2 additions and 2 deletions

View File

@ -482,9 +482,9 @@ eina_thread_queue_pending_get(const Eina_Thread_Queue *thq)
#ifdef ATOMIC
__atomic_load(&(thq->pending), &pending, __ATOMIC_RELAXED);
#else
eina_spinlock_take(&(thq->lock_pending));
eina_spinlock_take((Eina_Spinlock *)&(thq->lock_pending));
pending = thq->pending;
eina_spinlock_release(&(thq->lock_pending));
eina_spinlock_release((Eina_Spinlock *)&(thq->lock_pending));
#endif
return pending;
}