Skip to content
Permalink
Browse files

Remove unused variables

  • Loading branch information
pmandin committed Sep 3, 2011
1 parent b5769ce commit cb71abe5aaee5ddd8d7fbee0bce5ca5eeab1f458
Showing with 4 additions and 8 deletions.
  1. +1 −2 src/audio/mint/SDL_mintaudio_xbios.c
  2. +2 −2 src/video/gem/SDL_gemevents.c
  3. +1 −4 src/video/gem/SDL_gemvideo.c
@@ -384,7 +384,7 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)

static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
{
int channels_mode, dmaclock, prediv;
int channels_mode, prediv;
void *buffer;

/* Stop currently playing sound */
@@ -412,7 +412,6 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
DEBUG_PRINT((DEBUG_NAME "Setmode() failed\n"));
}

dmaclock = MINTAUDIO_frequencies[MINTAUDIO_numfreq].masterclock;
prediv = MINTAUDIO_frequencies[MINTAUDIO_numfreq].predivisor;
if (MINTAUDIO_frequencies[MINTAUDIO_numfreq].gpio_bits != -1) {
Gpio(GPIO_SET,7); /* DSP port gpio outputs */
@@ -173,14 +173,14 @@ void GEM_PumpEvents(_THIS)

static int do_messages(_THIS, short *message)
{
int quit, posted, check_mouse_mode;
int quit, check_mouse_mode;
short x2,y2,w2,h2;

quit = check_mouse_mode = 0;
switch (message[0]) {
case WM_CLOSED:
case AP_TERM:
posted = SDL_PrivateQuit();
SDL_PrivateQuit();
quit=1;
break;
case WM_MOVED:
@@ -217,8 +217,7 @@ static void VDI_ReadExtInfo(_THIS, short *work_out)
{
unsigned long EdDI_version;
long cookie_EdDI;
Uint32 num_colours;
Uint16 clut_type, num_bits;
Uint16 clut_type;

/* Read EdDI informations */
if (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
@@ -231,8 +230,6 @@ static void VDI_ReadExtInfo(_THIS, short *work_out)

VDI_format = work_out[0];
clut_type = work_out[1];
num_bits = work_out[2];
num_colours = *((Uint32 *) &work_out[3]);

/* With EdDI>=1.1, we can have screen pitch, address and format
* so we can directly write to screen without using vro_cpyfm

0 comments on commit cb71abe

Please sign in to comment.