From 14f7ae63104672a68a44c4b4b9878c4557df4644 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 9 Aug 2012 10:59:17 -0400 Subject: [PATCH] Fixed some compiler warnings. --- example/manymousepong.c | 5 +---- example/mmpong.c | 2 +- example/test_manymouse_sdl.c | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/example/manymousepong.c b/example/manymousepong.c index 810e97b..e83cde7 100644 --- a/example/manymousepong.c +++ b/example/manymousepong.c @@ -193,15 +193,12 @@ static int initMice(void) if (available_mice > MAX_PADDLES) { - printf("Clamping to first %d mice.\n"); + printf("Clamping to first %d mice.\n", available_mice); available_mice = MAX_PADDLES; } for (i = 0; i < available_mice; i++) - { - const char *name = ManyMouse_DeviceName(i); paddles[i].exists = 1; - } } setSidesExists(); diff --git a/example/mmpong.c b/example/mmpong.c index cd6d473..ef9aa35 100644 --- a/example/mmpong.c +++ b/example/mmpong.c @@ -132,7 +132,7 @@ static void init_mice(void) if (available_mice > MAX_MICE) { - printf("Clamping to first %d mice.\n"); + printf("Clamping to first %d mice.\n", available_mice); available_mice = MAX_MICE; } diff --git a/example/test_manymouse_sdl.c b/example/test_manymouse_sdl.c index 126554f..488252f 100644 --- a/example/test_manymouse_sdl.c +++ b/example/test_manymouse_sdl.c @@ -213,7 +213,7 @@ static void init_mice(void) if (available_mice > MAX_MICE) { - printf("Clamping to first %d mice.\n"); + printf("Clamping to first %d mice.\n", available_mice); available_mice = MAX_MICE; }