From: James Turner Date: Sat, 29 Oct 2011 10:06:24 +0000 (+0100) Subject: Move ALUT 1.0 variables inside the #ifdef, to avoid some compiler warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=519a84334091adc73edf274052eac1ed6bf10815;p=simgear.git Move ALUT 1.0 variables inside the #ifdef, to avoid some compiler warnings. --- diff --git a/simgear/sound/openal_test1.cxx b/simgear/sound/openal_test1.cxx index f02c53db..0a6dc885 100644 --- a/simgear/sound/openal_test1.cxx +++ b/simgear/sound/openal_test1.cxx @@ -103,10 +103,6 @@ int main( int argc, char *argv[] ) { ALfloat source_vel[3]; // configuration values - ALenum format; - ALsizei size; - ALvoid* data; - ALsizei freq; ALboolean loop = false; source_pos[0] = 0.0; source_pos[1] = 0.0; source_pos[2] = 0.0; @@ -131,6 +127,11 @@ int main( int argc, char *argv[] ) { } #else + ALenum format; + ALsizei size; + ALvoid* data; + ALsizei freq; + # if defined (__APPLE__) alutLoadWAVFile( (ALbyte *)AUDIOFILE, &format, &data, &size, &freq ); # else