1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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
This commit is contained in:
Alexey Dokuchaev 2024-11-16 06:07:52 +00:00
parent 7bc7cd6875
commit a62009118b

View File

@ -0,0 +1,11 @@
--- 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;