mirror of https://github.com/FreeRDP/FreeRDP
[warnings] fix unchecked return
This commit is contained in:
parent
1bd6d70057
commit
0de75b305c
|
@ -1519,7 +1519,7 @@ BOOL WINAPI FreeRDP_WTSVirtualChannelRead(HANDLE hChannelHandle, ULONG TimeOut,
|
|||
|
||||
if (messageCtx->offset >= messageCtx->length)
|
||||
{
|
||||
MessageQueue_Peek(channel->queue, &message, TRUE);
|
||||
(void)MessageQueue_Peek(channel->queue, &message, TRUE);
|
||||
peer_channel_queue_free_message(&message);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ int TestInterlockedAccess(int argc, char* argv[])
|
|||
/* InterlockedDecrement */
|
||||
|
||||
for (int index = 0; index < 10; index++)
|
||||
InterlockedDecrement(Addend);
|
||||
(void)InterlockedDecrement(Addend);
|
||||
|
||||
if (*Addend != 0)
|
||||
{
|
||||
|
|
|
@ -244,7 +244,7 @@ VOID LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
|
|||
}
|
||||
else
|
||||
{
|
||||
InterlockedDecrement(&lpCriticalSection->LockCount);
|
||||
(void)InterlockedDecrement(&lpCriticalSection->LockCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ void winpr_backtrace_symbols_fd(void* buffer, int fd)
|
|||
return;
|
||||
|
||||
for (size_t i = 0; i < used; i++)
|
||||
_write(fd, lines[i], (unsigned)strnlen(lines[i], UINT32_MAX));
|
||||
(void)_write(fd, lines[i], (unsigned)strnlen(lines[i], UINT32_MAX));
|
||||
free(lines);
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue