mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
testatomic.c: fix warnings due to SDL_AtomicDecRef() use
This commit is contained in:
parent
8e20376f1a
commit
b064028c2d
@ -353,7 +353,7 @@ static SDL_bool EnqueueEvent_LockFree(SDL_EventQueue *queue, const SDL_Event *ev
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_SPINLOCK_FIFO
|
#ifdef TEST_SPINLOCK_FIFO
|
||||||
SDL_AtomicDecRef(&queue->rwcount);
|
(void) SDL_AtomicDecRef(&queue->rwcount);
|
||||||
#endif
|
#endif
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -400,7 +400,7 @@ static SDL_bool DequeueEvent_LockFree(SDL_EventQueue *queue, SDL_Event *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TEST_SPINLOCK_FIFO
|
#ifdef TEST_SPINLOCK_FIFO
|
||||||
SDL_AtomicDecRef(&queue->rwcount);
|
(void) SDL_AtomicDecRef(&queue->rwcount);
|
||||||
#endif
|
#endif
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@ -581,7 +581,7 @@ static int SDLCALL FIFO_Watcher(void* _data)
|
|||||||
SDL_Delay(0);
|
SDL_Delay(0);
|
||||||
}
|
}
|
||||||
/* Do queue manipulation here... */
|
/* Do queue manipulation here... */
|
||||||
SDL_AtomicDecRef(&queue->watcher);
|
(void) SDL_AtomicDecRef(&queue->watcher);
|
||||||
SDL_AtomicUnlock(&queue->lock);
|
SDL_AtomicUnlock(&queue->lock);
|
||||||
|
|
||||||
/* Wait a bit... */
|
/* Wait a bit... */
|
||||||
|
Loading…
Reference in New Issue
Block a user