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 5984057c0a599fee
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
     1.1 --- a/src/cdrom/macosx/CDPlayer.c	Thu Oct 13 01:49:14 2011 -0400
     1.2 +++ b/src/cdrom/macosx/CDPlayer.c	Thu Oct 13 12:19:30 2011 -0400
     1.3 @@ -140,7 +140,6 @@
     1.4      ByteCount         actualRead;
     1.5      CFDataRef         dataRef = 0;
     1.6      CFPropertyListRef propertyListRef = 0;
     1.7 -    int               i;
     1.8      FSRefParam      fsRefPB;
     1.9      FSRef           tocPlistFSRef;
    1.10      FSRef           rootRef;
     2.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Thu Oct 13 01:49:14 2011 -0400
     2.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Thu Oct 13 12:19:30 2011 -0400
     2.3 @@ -78,7 +78,6 @@
     2.4  #endif
     2.5  
     2.6  void     QZ_InitOSKeymap (_THIS) {
     2.7 -    const void *KCHRPtr;
     2.8      BOOL saw_layout = NO;
     2.9      UInt32 state;
    2.10      UInt32 value;
    2.11 @@ -274,7 +273,7 @@
    2.12  #if (MAC_OS_X_VERSION_MIN_REQUIRED < 1050)
    2.13      if (!saw_layout) {
    2.14          /* Get a pointer to the systems cached KCHR */
    2.15 -        KCHRPtr = (void *)GetScriptManagerVariable(smKCHRCache);
    2.16 +        const void *KCHRPtr = (const void *)GetScriptManagerVariable(smKCHRCache);
    2.17          if (KCHRPtr)
    2.18          {
    2.19              /* Loop over all 127 possible scan codes */