From 3d61da6c1828479b58bb443711c8129e70ebace0 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 1 Jun 2024 15:31:20 +0200 Subject: gstreamer1.0-plugins-bad_1.22.5.imx: fix compile time error GCC-14 set more warnings to errors, demote the ones which trigger to a warning. Fixes: | .../gst-libs/gst/play/gstplay.c:4926:7: error: implicit declaration of function 'usleep'; did you mean 'g_usleep'? [-Wimplicit-function-declaration] | .../gst-libs/gst/wayland/gstwlbuffer.c:347:35: error: 'return' with a value, in function returning void [-Wreturn-mismatch] | .../gst-libs/gst/wayland/gstwlwindow.c:691:14: error: returning 'struct wl_surface *' from a function with incompatible return type 'struct wl_subsurface *' [-Wincompatible-pointer-types] | .../recipe-sysroot/usr/include/glib-2.0/glib/gmessages.h:671:16: error: returning 'void *' from a function with return type 'gint' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion] Signed-off-by: Max Krummenacher --- .../gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb index 3366a627..39c1bfe1 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb @@ -211,6 +211,13 @@ PACKAGECONFIG_G2D:imxgpu2d ??= "g2d" PACKAGECONFIG[g2d] = ",,virtual/libg2d" PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" +# GCC-14 otherwise errors out +CFLAGS += " \ + -Wno-error=implicit-function-declaration \ + -Wno-error=incompatible-pointer-types \ + -Wno-error=return-mismatch \ + -Wno-error=int-conversion \ +" EXTRA_OEMESON += " \ -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ " -- cgit v1.2.3-54-g00ecf