From 18e82495cdb62d0cdef730b7cd4e6c17a0aa4f7a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 13 Oct 2011 12:19:30 -0400 Subject: [PATCH] Fixed unused variable compiler warnings on Mac OS X. --- src/cdrom/macosx/CDPlayer.c | 1 - src/video/quartz/SDL_QuartzEvents.m | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cdrom/macosx/CDPlayer.c b/src/cdrom/macosx/CDPlayer.c index 27bc614e8..3e2ba8974 100644 --- a/src/cdrom/macosx/CDPlayer.c +++ b/src/cdrom/macosx/CDPlayer.c @@ -140,7 +140,6 @@ int ReadTOCData (FSVolumeRefNum theVolume, SDL_CD *theCD) ByteCount actualRead; CFDataRef dataRef = 0; CFPropertyListRef propertyListRef = 0; - int i; FSRefParam fsRefPB; FSRef tocPlistFSRef; FSRef rootRef; diff --git a/src/video/quartz/SDL_QuartzEvents.m b/src/video/quartz/SDL_QuartzEvents.m index 5efa5fbda..7a185bc61 100644 --- a/src/video/quartz/SDL_QuartzEvents.m +++ b/src/video/quartz/SDL_QuartzEvents.m @@ -78,7 +78,6 @@ #endif void QZ_InitOSKeymap (_THIS) { - const void *KCHRPtr; BOOL saw_layout = NO; UInt32 state; UInt32 value; @@ -274,7 +273,7 @@ void QZ_InitOSKeymap (_THIS) { #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 */