Fixed unused variable compiler warnings on Mac OS X. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Oct 2011 12:19:30 -0400
branchSDL-1.2
changeset 5984 057c0a599fee
parent 5983 1361a12b2e58
child 5985 f617e1b7a27f
Fixed unused variable compiler warnings on Mac OS X.
src/cdrom/macosx/CDPlayer.c
src/video/quartz/SDL_QuartzEvents.m
--- a/src/cdrom/macosx/CDPlayer.c	Thu Oct 13 01:49:14 2011 -0400
+++ b/src/cdrom/macosx/CDPlayer.c	Thu Oct 13 12:19:30 2011 -0400
@@ -140,7 +140,6 @@
     ByteCount         actualRead;
     CFDataRef         dataRef = 0;
     CFPropertyListRef propertyListRef = 0;
-    int               i;
     FSRefParam      fsRefPB;
     FSRef           tocPlistFSRef;
     FSRef           rootRef;
--- a/src/video/quartz/SDL_QuartzEvents.m	Thu Oct 13 01:49:14 2011 -0400
+++ b/src/video/quartz/SDL_QuartzEvents.m	Thu Oct 13 12:19:30 2011 -0400
@@ -78,7 +78,6 @@
 #endif
 
 void     QZ_InitOSKeymap (_THIS) {
-    const void *KCHRPtr;
     BOOL saw_layout = NO;
     UInt32 state;
     UInt32 value;
@@ -274,7 +273,7 @@
 #if (MAC_OS_X_VERSION_MIN_REQUIRED < 1050)
     if (!saw_layout) {
         /* Get a pointer to the systems cached KCHR */
-        KCHRPtr = (void *)GetScriptManagerVariable(smKCHRCache);
+        const void *KCHRPtr = (const void *)GetScriptManagerVariable(smKCHRCache);
         if (KCHRPtr)
         {
             /* Loop over all 127 possible scan codes */