Debian Codegraph @

debian/patches/0001-exp.c-Make-opfunc_t-variadic.patch

raw
1 From: Sergio Durigan Junior <[email protected]>
2 Date: Sat, 27 Sep 2025 16:18:26 -0400
3 Subject: exp.c: Make opfunc_t variadic
4
5 Fix FTBFS with GCC 15.
6
7 This is an ugly hack. A better way would probably involve expanding
8 the function's arguments using __attribute__((unused)) for extra vars.
9
10 Forwarded: no
11 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096503
12 ---
13 src/exp.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/src/exp.c b/src/exp.c
17 index aa849c9..06e0579 100644
18 --- a/src/exp.c
19 +++ b/src/exp.c
20 @@ -49,7 +49,7 @@ typedef union unibin opfunc_t;
21 #define _binary .binary
22 #else /* warning: Calling functions without prototype */
23
24 -typedef void (*opfunc_t)();
25 +typedef void (*opfunc_t)(...);
26 #define _unary
27 #define _binary
28