package/gstreamer1/gst1-plugins-bad: explicitly enable C99 for dvbsubenc/gcc 4.8
dvbsubenc fails to build with gcc 4.8 due to restrict keyword and for loop declarations: ../gst/dvbsubenc/libimagequant/blur.c:10:46: error: expected ';', ',' or ')' before 'src' transposing_1d_blur (unsigned char *restrict src, unsigned char *restrict dst, ^ ../gst/dvbsubenc/libimagequant/blur.c: In function 'liq_min3': ../gst/dvbsubenc/libimagequant/blur.c:101:5: error: 'for' loop initial declarations are only allowed in C99 mode for (unsigned int i = 0; i < width - 1; i++) { ^ ../gst/dvbsubenc/libimagequant/blur.c:101:5: note: use option -std=c99 or -std=gnu99 to compile your code Fixes: - http://autobuild.buildroot.org/results/183e876d63340b5c204f47a4653cbfebb0523277 Both of which are C99 features, so explicitly enable C99 support to fix that. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
0e4d645cf2
commit
f01db4f73b
@ -13,6 +13,7 @@ GST1_PLUGINS_BAD_INSTALL_STAGING = YES
|
||||
GST1_PLUGINS_BAD_LICENSE_FILES = COPYING
|
||||
GST1_PLUGINS_BAD_LICENSE = LGPL-2.0+
|
||||
|
||||
GST1_PLUGINS_BAD_CFLAGS = $(TARGET_CFLAGS) -std=c99
|
||||
GST1_PLUGINS_BAD_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
||||
|
||||
GST1_PLUGINS_BAD_CONF_OPTS = \
|
||||
|
Loading…
Reference in New Issue
Block a user