1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: fix build failure with gcc-15
Since gcc-15, the C standard in use is C23, which now translates empty
argument lists as zero-argument functions. This patch fixes the
following build failure:
.
call.c:72:8: error: too many arguments to function ‘((CALL *)(calls->base + (sizetype)(calls->size * i)))->func’; expected 0, have 1
72 | (*(arr(calls,i,CALL).func))(args) ;
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
Author: Étienne Mollier <emollier@debian.org>
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=169601
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097160
Last-Update: 2025-09-10
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- libace-perl.orig/acelib/wh/call.h
+++ libace-perl/acelib/wh/call.h
@@ -25,7 +25,7 @@
#include "regular.h"
typedef int MESSAGERETURN ;
-typedef void (*CallFunc)() ;
+typedef void (*CallFunc)(va_list args) ;
void callRegister (char *name, CallFunc func) ;
BOOL call (char *name, ...) ;
|