tilem: fix build with GCC 15 (#509119)
This commit is contained in:
@@ -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 :
|
||||
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user