Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Sep 3, 2011
1 parent b5769ce commit cb71abe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/audio/mint/SDL_mintaudio_xbios.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down
4 changes: 2 additions & 2 deletions src/video/gem/SDL_gemevents.c
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions src/video/gem/SDL_gemvideo.c
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit cb71abe

Please sign in to comment.