From 6996418dc532fd728049b8f9fb3e7101b4af9ff0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 1 May 2025 23:54:57 -0700 Subject: libsdl: Stick to C17 dialect GCC-15 defaults to C23 and this component is almost dead. it still is needed by few other recipes so keep it going but ideally removing it might be a better thing to do in near future Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta-oe') diff --git a/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb b/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb index 2ccedae3ec..35870c4814 100644 --- a/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb +++ b/meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb @@ -40,7 +40,9 @@ BINCONFIG = "${bindir}/sdl-config" inherit autotools lib_package binconfig-disabled pkgconfig CVE_PRODUCT = "simple_directmedia_layer sdl" - +# GCC15/C23 results in following errors +# ../SDL-1.2.15/src/video/Xext/XME/xme.c:218:5: error: initialization of 'int (*)(Display *, XExtCodes *)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types] +CFLAGS += "-std=c17" EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \ --enable-file --disable-oss --disable-esd --disable-arts \ --disable-diskaudio --disable-nas \ -- cgit v1.2.3-54-g00ecf