Fix clang compiler warnings

This commit is contained in:
Bernhard Miklautz 2015-01-16 00:41:57 +01:00
parent ddd96d0968
commit c70293aa60
3 changed files with 3 additions and 3 deletions

View File

@ -1081,7 +1081,7 @@ BOOL freerdp_client_detect_command_line(int argc, char** argv, DWORD* flags)
return compatibility;
/* Check, if this may be windows style syntax... */
if (windows_cli_count && (windows_cli_count >= posix_cli_count) || (windows_cli_status <= COMMAND_LINE_STATUS_PRINT))
if ((windows_cli_count && (windows_cli_count >= posix_cli_count)) || (windows_cli_status <= COMMAND_LINE_STATUS_PRINT))
{
windows_cli_count = 1;
*flags = COMMAND_LINE_SEPARATOR_COLON;

View File

@ -201,7 +201,7 @@ BYTE* ringbuffer_ensure_linear_write(RingBuffer* rb, size_t sz)
if (rb->writePtr == rb->readPtr)
{
rb->writePtr = rb->readPtr = NULL;
rb->writePtr = rb->readPtr = 0;
}
if (rb->writePtr + sz < rb->size)

View File

@ -20,7 +20,7 @@ int TestBacktrace(int argc, char* argv[])
printf("%zd: %s\n", x, msg[x]);
rc = 0;
}
winpr_backtrace_symbols_fd(stack, stdout);
winpr_backtrace_symbols_fd(stack, fileno(stdout));
winpr_backtrace_free(stack);