[warnings] fix unchecked return

This commit is contained in:
akallabeth 2024-09-15 10:19:56 +02:00
parent 1bd6d70057
commit 0de75b305c
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5
4 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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)
{

View File

@ -244,7 +244,7 @@ VOID LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
}
else
{
InterlockedDecrement(&lpCriticalSection->LockCount);
(void)InterlockedDecrement(&lpCriticalSection->LockCount);
}
}

View File

@ -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