summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-21 14:05:41 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-07-21 14:05:41 +0200
commit9617178800566f263fb1bb1c04e9547a74ab6dbf (patch)
tree784aaafc5c706f9b6c0cb6fb44af77ed78841799 /libavcodec
parent153fcd6de6ba558a3720c64589a7e4e9e4d62420 (diff)
downloadffmpeg-9617178800566f263fb1bb1c04e9547a74ab6dbf.tar.gz
lavc/fft_template: Do not define unneded functions with --enable-small.
Fixes the following warnings: In file included from libavcodec/fft_fixed.c:21:0: libavcodec/fft_template.c:528:6: warning: ‘pass_big’ defined but not used [-Wunused-function] PASS(pass_big) ^ libavcodec/fft_template.c:505:13: note: in definition of macro ‘PASS’ static void name(FFTComplex *z, const FFTSample *wre, unsigned int n)\ ^~~~ CC libavcodec/ffv1.o In file included from libavcodec/fft_float.c:21:0: libavcodec/fft_template.c:528:6: warning: ‘pass_big’ defined but not used [-Wunused-function] PASS(pass_big) ^ libavcodec/fft_template.c:505:13: note: in definition of macro ‘PASS’ static void name(FFTComplex *z, const FFTSample *wre, unsigned int n)\ ^~~~
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/fft_template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/fft_template.c b/libavcodec/fft_template.c
index 6c77854e41..762c014bc8 100644
--- a/libavcodec/fft_template.c
+++ b/libavcodec/fft_template.c
@@ -523,9 +523,11 @@ static void name(FFTComplex *z, const FFTSample *wre, unsigned int n)\
}
PASS(pass)
+#if !CONFIG_SMALL
#undef BUTTERFLIES
#define BUTTERFLIES BUTTERFLIES_BIG
PASS(pass_big)
+#endif
#define DECL_FFT(n,n2,n4)\
static void fft##n(FFTComplex *z)\