From 37cf54fd4d254df846f7dea5c300e3d215de53a9 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 23 May 2024 07:22:15 +0000 Subject: [PATCH] libretro-picodrive: fix gcc-14 build on arm32 Fix build on arm32 pico/carthw/svp/compiler.c: In function 'ssp_translate_block': pico/carthw/svp/compiler.c:1800:24: error: passing argument 1 of 'rfflush' from incompatible pointer type [-Wincompatible-pointer-types] 1800 | fflush(stdout); | ^~~~~~ | | | FILE * In file included from ./pico/pico_port.h:12, from ./pico/pico_int.h:15, from pico/carthw/svp/compiler.c:9: platform/libretro/libretro-common/include/streams/file_stream_transforms.h:89:25: note: expected 'RFILE *' but argument is of type 'FILE *' 89 | int64_t rfflush(RFILE * stream); | ~~~~~~~~^~~~~~ --- .../patches/picodrive-02-fix-build-gcc-14-1.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/emulation/libretro-picodrive/patches/picodrive-02-fix-build-gcc-14-1.patch diff --git a/packages/emulation/libretro-picodrive/patches/picodrive-02-fix-build-gcc-14-1.patch b/packages/emulation/libretro-picodrive/patches/picodrive-02-fix-build-gcc-14-1.patch new file mode 100644 index 0000000000..64eba3aae0 --- /dev/null +++ b/packages/emulation/libretro-picodrive/patches/picodrive-02-fix-build-gcc-14-1.patch @@ -0,0 +1,11 @@ +--- a/pico/carthw/svp/compiler.c 2024-05-23 07:19:59.237513012 +0000 ++++ b/pico/carthw/svp/compiler.c 2024-05-23 07:19:48.767443545 +0000 +@@ -1797,7 +1797,7 @@ + + if (tcache_ptr - (u32 *)tcache > DRC_TCACHE_SIZE/4) { + elprintf(EL_ANOMALY|EL_STATUS|EL_SVP, "tcache overflow!\n"); +- fflush(stdout); ++ fflush((RFILE *)stdout); + exit(1); + } +