summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2024-06-01 15:31:20 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2024-06-01 16:34:30 +0200
commit3d61da6c1828479b58bb443711c8129e70ebace0 (patch)
tree56f95794a2750afd065a00ea2038ea1816cbf8b7
parentd6c982648868009ea38b36e1eabadef94742b3ca (diff)
downloadmeta-freescale-3d61da6c1828479b58bb443711c8129e70ebace0.tar.gz
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 <max.krummenacher@toradex.com>
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb7
1 files changed, 7 insertions, 0 deletions
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"
211PACKAGECONFIG[g2d] = ",,virtual/libg2d" 211PACKAGECONFIG[g2d] = ",,virtual/libg2d"
212PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" 212PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress"
213 213
214# GCC-14 otherwise errors out
215CFLAGS += " \
216 -Wno-error=implicit-function-declaration \
217 -Wno-error=incompatible-pointer-types \
218 -Wno-error=return-mismatch \
219 -Wno-error=int-conversion \
220"
214EXTRA_OEMESON += " \ 221EXTRA_OEMESON += " \
215 -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ 222 -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \
216" 223"