Fix initialisers in dct-test.c.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Oct 2014 10:01:26 +0000 (12:01 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 16 Oct 2014 10:01:26 +0000 (12:01 +0200)
Silences a warning when running fate on unusual platforms:
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]

libavcodec/dct-test.c

index 1739c37..30eca3e 100644 (file)
@@ -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