Fixed some compiler warnings.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 09 Aug 2012 10:59:17 -0400
changeset 122 0b74c0d4a9e6
parent 121 cb7c8d9a9d02
child 123 8228b0663045
Fixed some compiler warnings.
example/manymousepong.c
example/mmpong.c
example/test_manymouse_sdl.c
--- a/example/manymousepong.c	Wed Aug 08 22:59:47 2012 -0400
+++ b/example/manymousepong.c	Thu Aug 09 10:59:17 2012 -0400
@@ -193,15 +193,12 @@
 
         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();
--- a/example/mmpong.c	Wed Aug 08 22:59:47 2012 -0400
+++ b/example/mmpong.c	Thu Aug 09 10:59:17 2012 -0400
@@ -132,7 +132,7 @@
 
     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;
     }
 
--- a/example/test_manymouse_sdl.c	Wed Aug 08 22:59:47 2012 -0400
+++ b/example/test_manymouse_sdl.c	Thu Aug 09 10:59:17 2012 -0400
@@ -213,7 +213,7 @@
 
     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;
     }