From: Carsten Haitzler (Rasterman) Date: Fri, 5 Aug 2016 04:42:50 +0000 (+0900) Subject: eina_threadqueue - fix const ptr warning on spinlocks if atomic disabled X-Git-Tag: upstream/1.20.0~4925 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b6823e5af645929264551f806f2defff576602d;p=platform%2Fupstream%2Fefl.git 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) --- diff --git a/src/lib/eina/eina_thread_queue.c b/src/lib/eina/eina_thread_queue.c index dc92db5..43db73d 100644 --- a/src/lib/eina/eina_thread_queue.c +++ b/src/lib/eina/eina_thread_queue.c @@ -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; }