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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-05-01 23:54:57 -07:00
parent 4dc29cb1b0
commit 6996418dc5
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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 \