ports/lang/gforth/files/patch-fflib.fs
Alexey Dokuchaev a62009118b lang/gforth: try to fix another warning-becomes-error with GCC 14
Old gforth_callback_ffcall() signature looks dubious and does not
match the API of `devel/libffcall' [-Wincompatible-pointer-types]:

  callback.h:58:35: note: expected 'callback_function_t' {aka
 'void (*)(void *, struct vacall_alist *)'} but argument is of
  type 'void (*)(void ***, void *)'

PR:	281238
2024-11-16 06:07:52 +00:00

11 lines
350 B
Forth

--- fflib.fs.orig 2013-10-11 21:31:28 UTC
+++ fflib.fs
@@ -37,7 +37,7 @@ s" callback" add-lib
\c typedef void *Label;
\c typedef Label *Xt;
\c
-\c void gforth_callback_ffcall(Xt* fcall, void * alist)
+\c void gforth_callback_ffcall(void* fcall, va_alist alist)
\c {
\c #ifndef HAS_BACKLINK
\c void **gforth_pointers = saved_gforth_pointers;