# HG changeset patch # User Sam Lantinga # Date 1220285060 0 # Node ID 79c1bd651f04f2ffab8937d1716f1501cc2f4d70 # Parent 140a7edcf2bd5787aaaf63571924348de96e53a5 Fixed a bunch of compile warnings on Mac OS X diff -r 140a7edcf2bd -r 79c1bd651f04 src/audio/SDL_audiocvt.c --- a/src/audio/SDL_audiocvt.c Sun Aug 31 16:04:32 2008 +0000 +++ b/src/audio/SDL_audiocvt.c Mon Sep 01 16:04:20 2008 +0000 @@ -1622,7 +1622,6 @@ SDL_BuildWindowedSinc(SDL_AudioCVT * cvt, SDL_AudioFormat format, unsigned int m) { - float fScale; /* scale factor for fixed point */ float *fSinc; /* floating point sinc buffer, to be converted to fixed point */ float fc; /* cutoff frequency */ float two_pi_fc, two_pi_over_m, four_pi_over_m, m_over_two; @@ -1708,6 +1707,8 @@ /* Clean up */ #undef convert_fixed SDL_stack_free(fSinc); + + return 0; } /* This is used to reduce the resampling ratio */ diff -r 140a7edcf2bd -r 79c1bd651f04 src/audio/macosx/SDL_coreaudio.c --- a/src/audio/macosx/SDL_coreaudio.c Sun Aug 31 16:04:32 2008 +0000 +++ b/src/audio/macosx/SDL_coreaudio.c Mon Sep 01 16:04:20 2008 +0000 @@ -418,7 +418,6 @@ AURenderCallbackStruct callback; ComponentDescription desc; Component comp = NULL; - int use_system_device = 0; UInt32 enableIO = 0; const AudioUnitElement output_bus = 0; const AudioUnitElement input_bus = 1; diff -r 140a7edcf2bd -r 79c1bd651f04 src/audio/macrom/SDL_romaudio.c --- a/src/audio/macrom/SDL_romaudio.c Sun Aug 31 16:04:32 2008 +0000 +++ b/src/audio/macrom/SDL_romaudio.c Mon Sep 01 16:04:20 2008 +0000 @@ -89,6 +89,7 @@ DecrementAtomic((SInt32 *) & need_to_mix); } +#ifndef __MACOSX__ static void SNDMGR_LockDevice(_THIS) { @@ -114,6 +115,7 @@ mix_buffer(this, buffer[fill_me]); } } +#endif // __MACOSX__ static void callBackProc(SndChannel * chan, SndCommand * cmd_passed) diff -r 140a7edcf2bd -r 79c1bd651f04 src/video/cocoa/SDL_cocoaevents.m --- a/src/video/cocoa/SDL_cocoaevents.m Sun Aug 31 16:04:32 2008 +0000 +++ b/src/video/cocoa/SDL_cocoaevents.m Mon Sep 01 16:04:20 2008 +0000 @@ -22,6 +22,7 @@ #include "SDL_config.h" #include "SDL_cocoavideo.h" +#include "../../events/SDL_events_c.h" /* setAppleMenu disappeared from the headers in 10.4 */ #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4 diff -r 140a7edcf2bd -r 79c1bd651f04 src/video/cocoa/SDL_cocoaopengl.m --- a/src/video/cocoa/SDL_cocoaopengl.m Sun Aug 31 16:04:32 2008 +0000 +++ b/src/video/cocoa/SDL_cocoaopengl.m Mon Sep 01 16:04:20 2008 +0000 @@ -27,6 +27,7 @@ #if SDL_VIDEO_OPENGL_CGL #include +#include #include "SDL_loadso.h" #include "SDL_opengl.h" diff -r 140a7edcf2bd -r 79c1bd651f04 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Sun Aug 31 16:04:32 2008 +0000 +++ b/src/video/x11/SDL_x11events.c Mon Sep 01 16:04:20 2008 +0000 @@ -201,7 +201,7 @@ #ifdef X_HAVE_UTF8_STRING if (data->ic) { Xutf8LookupString(data->ic, &xevent.xkey, text, sizeof(text), - &keysym, status); + &keysym, &status); } #else XLookupString(&xevent.xkey, text, sizeof(text), &keysym, NULL); diff -r 140a7edcf2bd -r 79c1bd651f04 src/video/x11/SDL_x11video.h --- a/src/video/x11/SDL_x11video.h Sun Aug 31 16:04:32 2008 +0000 +++ b/src/video/x11/SDL_x11video.h Mon Sep 01 16:04:20 2008 +0000 @@ -69,7 +69,7 @@ int numwindows; SDL_WindowData **windowlist; int windowlistlength; - int *mouse; + int mouse; int keyboard; Atom WM_DELETE_WINDOW; SDL_scancode key_layout[256];