package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8
PATCH 1/1 package/gstreamer1/gst1-plugins-base: fix build with gcc 4.8
Fix the following build failure with gcc 4.8 raised since bump to version 1.20.0 in commit 801131157dcef2c97e947a1d3e8c9bfa7aa3d870:
../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210':../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode
for (int j = width * 4 - 1; j >= 0; j--) {
^Fixes:
- http://autobuild.buildroot.org/results/c4b1449f35debcbabff7e42abe239695d4ad4d21
--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 2 ++ 1 file changed, 2 insertions(+)
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +2 -0
@@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES GST1_PLUGINS_BASE_LICENSE_FILES = COPYING GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+ +GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 + GST1_PLUGINS_BASE_CONF_OPTS = \ -Dexamples=disabled \ -Dtests=disabled \
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 5 lines · Fabrice Fontaine
Fix the following build failure with gcc 4.8 raised since bump to version 1.20.0 in commit
801131157dcef2c97e947a1d3e8c9bfa7aa3d870:
../gst-libs/gst/video/video-converter.c: In function 'convert_I420_v210':../gst-libs/gst/video/video-converter.c:3771:7: error: 'for' loop initial declarations are only allowed in C99 mode
Quoted 7 lines
for (int j = width * 4 - 1; j >= 0; j--) { ^Fixes:
- http://autobuild.buildroot.org/results/c4b1449f35debcbabff7e42abe239695d4ad4d21Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 9 lines
--- package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk | 2 ++ 1 file changed, 2 insertions(+)package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +0
-0
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk GST1_PLUGINS_BASE_INSTALL_STAGING = YES · line 18
Quoted 8 lines
package/gstreamer1/gst1-plugins-base/gst1-plugins-base.mk +2
-0@@ -11,6 +11,8 @@ GST1_PLUGINS_BASE_INSTALL_STAGING = YES GST1_PLUGINS_BASE_LICENSE_FILES = COPYING GST1_PLUGINS_BASE_LICENSE = LGPL-2.1+ +GST1_PLUGINS_BASE_CFLAGS = $(TARGET_CFLAGS) -std=gnu99 + GST1_PLUGINS_BASE_CONF_OPTS = \ -Dexamples=disabled \ -Dtests=disabled \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot