summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOzkan Sezer <sezeroz@gmail.com>2020-12-24 00:25:40 +0300
committerOzkan Sezer <sezeroz@gmail.com>2020-12-24 00:25:40 +0300
commit63bb6757563ca8dd335d2172e0910cc46673085c (patch)
tree1337fa6bbae42bc980898989964d15e0f01e7747 /test
parentbd39a5050141188ab9f841f136852726b3806216 (diff)
downloadsdl-63bb6757563ca8dd335d2172e0910cc46673085c.tar.gz
testatomic.c: fix warnings due to SDL_AtomicDecRef() use
Diffstat (limited to 'test')
-rw-r--r--test/testatomic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testatomic.c b/test/testatomic.c
index 0a4e62dd1..e53b3177f 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -353,7 +353,7 @@ static SDL_bool EnqueueEvent_LockFree(SDL_EventQueue *queue, const SDL_Event *ev
}
#ifdef TEST_SPINLOCK_FIFO
- SDL_AtomicDecRef(&queue->rwcount);
+ (void) SDL_AtomicDecRef(&queue->rwcount);
#endif
return status;
}
@@ -400,7 +400,7 @@ static SDL_bool DequeueEvent_LockFree(SDL_EventQueue *queue, SDL_Event *event)
}
#ifdef TEST_SPINLOCK_FIFO
- SDL_AtomicDecRef(&queue->rwcount);
+ (void) SDL_AtomicDecRef(&queue->rwcount);
#endif
return status;
}
@@ -581,7 +581,7 @@ static int SDLCALL FIFO_Watcher(void* _data)
SDL_Delay(0);
}
/* Do queue manipulation here... */
- SDL_AtomicDecRef(&queue->watcher);
+ (void) SDL_AtomicDecRef(&queue->watcher);
SDL_AtomicUnlock(&queue->lock);
/* Wait a bit... */