diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2024-06-01 15:31:20 +0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2024-06-18 19:06:13 -0300 |
commit | 0cc3bf6bbb0e46ee54d5f2e838a6979331b9eb76 (patch) | |
tree | 334a66272a8a7b490c8fa512dfb5d02927ccf21d | |
parent | 249918c81338beab945a6e7b0930446d94ed32ff (diff) | |
download | meta-freescale-0cc3bf6bbb0e46ee54d5f2e838a6979331b9eb76.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>
(cherry picked from commit 3d61da6c1828479b58bb443711c8129e70ebace0)
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb | 7 |
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 3366a6274..39c1bfe19 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" | |||
211 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" | 211 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" |
212 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" | 212 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" |
213 | 213 | ||
214 | # GCC-14 otherwise errors out | ||
215 | CFLAGS += " \ | ||
216 | -Wno-error=implicit-function-declaration \ | ||
217 | -Wno-error=incompatible-pointer-types \ | ||
218 | -Wno-error=return-mismatch \ | ||
219 | -Wno-error=int-conversion \ | ||
220 | " | ||
214 | EXTRA_OEMESON += " \ | 221 | EXTRA_OEMESON += " \ |
215 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | 222 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ |
216 | " | 223 | " |