Fixed compiler warnings (-Wall)

This commit is contained in:
Bernhard Miklautz 2013-03-15 20:41:10 +01:00
parent e8eb0d0b44
commit 103171a98e
4 changed files with 4 additions and 8 deletions

View File

@ -105,6 +105,7 @@ char* gdi_convert_postfix_to_infix(char* postfix)
wStack* stack;
int al, bl, cl, dl;
char *a, *b, *c, *d;
al = bl = cl = dl =0;
stack = Stack_New(FALSE);

View File

@ -44,12 +44,6 @@
static char* test_pcap_file = NULL;
static BOOL test_dump_rfx_realtime = TRUE;
/* HL1, LH1, HH1, HL2, LH2, HH2, HL3, LH3, HH3, LL3 */
static const unsigned int test_quantization_values[] =
{
6, 6, 6, 6, 7, 7, 8, 8, 8, 9
};
void test_peer_context_new(freerdp_peer* client, testPeerContext* context)
{
context->rfx_context = rfx_context_new();

View File

@ -12,7 +12,7 @@ void CALLBACK test_WorkCallback(PTP_CALLBACK_INSTANCE instance, void* context, P
BYTE b[1024];
BYTE c[1024];
printf("Hello %s: %ld (thread: %lu)\n", context,
printf("Hello %s: %ld (thread: %lu)\n", (char *)context,
InterlockedIncrement(&count), GetCurrentThreadId());
for (index = 0; index < 100; index++)

View File

@ -60,7 +60,8 @@ int TestCmdLine(int argc, char* argv[])
{
int status;
DWORD flags;
int width, height;
int width = 0;
int height = 0;
COMMAND_LINE_ARGUMENT_A* arg;
flags = COMMAND_LINE_SIGIL_SLASH | COMMAND_LINE_SEPARATOR_COLON | COMMAND_LINE_SIGIL_PLUS_MINUS;