Skip to content

Commit

Permalink
Fixed unused variable compiler warnings on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 13, 2011
1 parent b359efc commit 18e8249
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/cdrom/macosx/CDPlayer.c
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/video/quartz/SDL_QuartzEvents.m
Expand Up @@ -78,7 +78,6 @@
#endif

void QZ_InitOSKeymap (_THIS) {
const void *KCHRPtr;
BOOL saw_layout = NO;
UInt32 state;
UInt32 value;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 18e8249

Please sign in to comment.