tilem: fix build with GCC 15 (#509119)

This commit is contained in:
Ben Siraphob
2026-04-23 21:00:01 +00:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
Fix call to zero-argument tilem_macro_new(), which GCC 15 rejects because the declaration takes no parameters.
--- a/gui/macro.c
+++ b/gui/macro.c
@@ -70,7 +70,7 @@
tilem_macro_finalize(emu->macro);
/* Then allocate a new one */
- emu->macro = tilem_macro_new(emu);
+ emu->macro = tilem_macro_new();
}
/* Add an action to the macro. The action could be :
+4 -1
View File
@@ -27,7 +27,10 @@ stdenv.mkDerivation (finalAttrs: {
libticables2
libticalcs2
];
patches = [ ./gcc14-fix.patch ];
patches = [
./gcc14-fix.patch
./gcc15-fix.patch
];
env.NIX_CFLAGS_COMPILE = toString [ "-lm" ];
meta = {
homepage = "http://lpg.ticalc.org/prj_tilem/";