[FFmpeg-devel] [PATCH]Fix initialiser in dct-test.c

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Oct 14 10:59:10 CEST 2014


Hi!

Attached patch fixes a (fate) compilation warning on 
unusual platforms, I did not really check if the 
warning is correct though.

CC      libavcodec/dct-test.o
libavcodec/dct-test.c:101:21: warning: missing braces around initializer 
[-Wmissing-braces]
libavcodec/dct-test.c:101:21: warning: (near initialization 
for 'fdct_tab_arch[0]') [-Wmissing-braces]
libavcodec/dct-test.c:102:21: warning: missing braces around initializer 
[-Wmissing-braces]
libavcodec/dct-test.c:102:21: warning: (near initialization 
for 'idct_tab_arch[0]') [-Wmissing-braces]

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 1739c37..30eca3e 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -98,8 +98,8 @@ static const struct algo idct_tab[] = {
 #elif ARCH_X86
 #include "x86/dct-test.c"
 #else
-static const struct algo fdct_tab_arch[] = { 0 };
-static const struct algo idct_tab_arch[] = { 0 };
+static const struct algo fdct_tab_arch[] = { { 0 } };
+static const struct algo idct_tab_arch[] = { { 0 } };
 #endif

 #define AANSCALE_BITS 12



More information about the ffmpeg-devel mailing list