Skip to content

Commit

Permalink
gstreamer1.0-plugins-bad_1.22.5.imx: fix compile time error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MaxKrummenacher committed Jun 1, 2024
1 parent d6c9826 commit 3d61da6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
"
Expand Down

0 comments on commit 3d61da6

Please sign in to comment.