Remove unused variables SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Sat, 03 Sep 2011 09:52:45 +0200
branchSDL-1.2
changeset 586794e0116059f4
parent 5864 f31019514269
child 5872 819e85555d4d
Remove unused variables
src/audio/mint/SDL_mintaudio_xbios.c
src/video/gem/SDL_gemevents.c
src/video/gem/SDL_gemvideo.c
     1.1 --- a/src/audio/mint/SDL_mintaudio_xbios.c	Fri Sep 02 13:55:31 2011 -0400
     1.2 +++ b/src/audio/mint/SDL_mintaudio_xbios.c	Sat Sep 03 09:52:45 2011 +0200
     1.3 @@ -384,7 +384,7 @@
     1.4  
     1.5  static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
     1.6  {
     1.7 -	int channels_mode, dmaclock, prediv;
     1.8 +	int channels_mode, prediv;
     1.9  	void *buffer;
    1.10  
    1.11  	/* Stop currently playing sound */
    1.12 @@ -412,7 +412,6 @@
    1.13  		DEBUG_PRINT((DEBUG_NAME "Setmode() failed\n"));
    1.14  	}
    1.15  
    1.16 -	dmaclock = MINTAUDIO_frequencies[MINTAUDIO_numfreq].masterclock;
    1.17  	prediv = MINTAUDIO_frequencies[MINTAUDIO_numfreq].predivisor;
    1.18  	if (MINTAUDIO_frequencies[MINTAUDIO_numfreq].gpio_bits != -1) {
    1.19  		Gpio(GPIO_SET,7);		/* DSP port gpio outputs */
     2.1 --- a/src/video/gem/SDL_gemevents.c	Fri Sep 02 13:55:31 2011 -0400
     2.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 03 09:52:45 2011 +0200
     2.3 @@ -173,14 +173,14 @@
     2.4  
     2.5  static int do_messages(_THIS, short *message)
     2.6  {
     2.7 -	int quit, posted, check_mouse_mode;
     2.8 +	int quit, check_mouse_mode;
     2.9  	short x2,y2,w2,h2;
    2.10  
    2.11  	quit = check_mouse_mode = 0;
    2.12  	switch (message[0]) {
    2.13  		case WM_CLOSED:
    2.14  		case AP_TERM:    
    2.15 -			posted = SDL_PrivateQuit();
    2.16 +			SDL_PrivateQuit();
    2.17  			quit=1;
    2.18  			break;
    2.19  		case WM_MOVED:
     3.1 --- a/src/video/gem/SDL_gemvideo.c	Fri Sep 02 13:55:31 2011 -0400
     3.2 +++ b/src/video/gem/SDL_gemvideo.c	Sat Sep 03 09:52:45 2011 +0200
     3.3 @@ -217,8 +217,7 @@
     3.4  {
     3.5  	unsigned long EdDI_version;
     3.6  	long cookie_EdDI;
     3.7 -	Uint32 num_colours;
     3.8 -	Uint16 clut_type, num_bits;
     3.9 +	Uint16 clut_type;
    3.10  
    3.11  	/* Read EdDI informations */
    3.12  	if  (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
    3.13 @@ -231,8 +230,6 @@
    3.14  
    3.15  	VDI_format = work_out[0];
    3.16  	clut_type = work_out[1];
    3.17 -	num_bits = work_out[2];
    3.18 -	num_colours = *((Uint32 *) &work_out[3]);
    3.19  
    3.20  	/* With EdDI>=1.1, we can have screen pitch, address and format
    3.21  	 * so we can directly write to screen without using vro_cpyfm