Unverified Commit 8ad37c06 authored by Ben Siraphob's avatar Ben Siraphob Committed by GitHub
Browse files

tilem: fix build with GCC 15 (#509119)

parents 95e8d48a 9b38600a
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
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
Original line number Diff line number Diff line
@@ -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/";