eina_threadqueue - fix const ptr warning on spinlocks if atomic disabled
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 5 Aug 2016 04:42:50 +0000 (13:42 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 5 Aug 2016 04:42:50 +0000 (13:42 +0900)
atomics SHOULDNT be disabled anyway, but if they are... fix this
warning. (no real bug)

src/lib/eina/eina_thread_queue.c

index dc92db5..43db73d 100644 (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;
 }