diff mbox series

[meta-oe,1/2] libsdl: Stick to C17 dialect

Message ID 20250502070013.3637845-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/2] libsdl: Stick to C17 dialect | expand

Commit Message

Khem Raj May 2, 2025, 7 a.m. UTC
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 <raj.khem@gmail.com>
---
 meta-oe/recipes-graphics/libsdl/libsdl_1.2.15.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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 \