Debian Codegraph @

debian/patches/gcc-15.patch

raw symbols SCIP
1 From: Sergei Golovan
2 Subject: Patch fixes FTBFS with GCC 15
3 Date: Wed, 05 Mar 2025 16:02:37 +0300
4 Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096378
5
6 --- a/generic/bltInt.h
7 +++ b/generic/bltInt.h
8 @@ -121,7 +121,7 @@
9 #define EXPORT
10
11 #undef VARARGS
12 -#ifdef __cplusplus
13 +#if 1
14 #define ANYARGS (...)
15 #define VARARGS(first) (first, ...)
16 #define VARARGS2(first, second) (first, second, ...)
17 @@ -131,6 +131,9 @@
18 #define VARARGS2(first, second) ()
19 #endif /* __cplusplus */
20
21 +/* Sometimes BLT uses variable named bool which fails with GCC 15 */
22 +#define bool boolv
23 +
24 #undef MIN
25 #define MIN(a,b) (((a)<(b))?(a):(b))
26
27 --- a/generic/bltGrElem.c
28 +++ b/generic/bltGrElem.c
29 @@ -55,8 +55,8 @@
30
31 #include "bltGrElem.h"
32
33 -extern Element *Blt_BarElement();
34 -extern Element *Blt_LineElement();
35 +extern Element *Blt_BarElement(Graph *graphPtr, char *name, Blt_Uid type);
36 +extern Element *Blt_LineElement(Graph *graphPtr, char *name, Blt_Uid classUid);
37
38 static Blt_VectorChangedProc VectorChangedProc;
39