Commit 892e9d36 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #857

Fixed compiler warnings

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404124
parent 7dea219b
...@@ -381,7 +381,7 @@ static int ALSA_finalize_hardware(_THIS, SDL_AudioSpec *spec, snd_pcm_hw_params_ ...@@ -381,7 +381,7 @@ static int ALSA_finalize_hardware(_THIS, SDL_AudioSpec *spec, snd_pcm_hw_params_
/* This is useful for debugging */ /* This is useful for debugging */
if ( getenv("SDL_AUDIO_ALSA_DEBUG") ) { if ( getenv("SDL_AUDIO_ALSA_DEBUG") ) {
snd_pcm_sframes_t persize = 0; snd_pcm_uframes_t persize = 0;
unsigned int periods = 0; unsigned int periods = 0;
SDL_NAME(snd_pcm_hw_params_get_period_size)(hwparams, &persize, NULL); SDL_NAME(snd_pcm_hw_params_get_period_size)(hwparams, &persize, NULL);
...@@ -467,7 +467,6 @@ static int ALSA_OpenAudio(_THIS, SDL_AudioSpec *spec) ...@@ -467,7 +467,6 @@ static int ALSA_OpenAudio(_THIS, SDL_AudioSpec *spec)
snd_pcm_format_t format; snd_pcm_format_t format;
unsigned int rate; unsigned int rate;
unsigned int channels; unsigned int channels;
snd_pcm_uframes_t bufsize;
Uint16 test_format; Uint16 test_format;
/* Open the audio device */ /* Open the audio device */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment