mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[clang,warnings] fix Wjump-misses-init
This commit is contained in:
@@ -218,11 +218,13 @@ BOOL Queue_Enqueue(wQueue* queue, const void* obj)
|
||||
}
|
||||
queue->tail = (queue->tail + 1) % queue->capacity;
|
||||
|
||||
const BOOL signalSet = queue->size == 0;
|
||||
queue->size++;
|
||||
{
|
||||
const BOOL signalSet = queue->size == 0;
|
||||
queue->size++;
|
||||
|
||||
if (signalSet)
|
||||
(void)SetEvent(queue->event);
|
||||
if (signalSet)
|
||||
(void)SetEvent(queue->event);
|
||||
}
|
||||
out:
|
||||
|
||||
Queue_Unlock(queue);
|
||||
|
||||
Reference in New Issue
Block a user