Преглед на файлове

Fixed warning: no previous extern declaration for non-static variable 'ResamplerFilter'

Fixes https://github.com/libsdl-org/SDL/issues/9556
Sam Lantinga преди 1 година
родител
ревизия
bdd47f7770
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/audio/SDL_audioresample.c

+ 1 - 1
src/audio/SDL_audioresample.c

@@ -447,7 +447,7 @@ static float Sinc(float *table, int x, int y)
     return (s * y) / x;
 }
 
-Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
+static Cubic ResamplerFilter[RESAMPLER_SAMPLES_PER_ZERO_CROSSING][RESAMPLER_SAMPLES_PER_FRAME];
 
 static void GenerateResamplerFilter()
 {