From: Sergei Golovan
Subject: Patch fixes FTBFS with GCC 15
Date: Wed, 05 Mar 2025 16:02:37 +0300
Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096378

--- a/generic/bltInt.h
+++ b/generic/bltInt.h
@@ -121,7 +121,7 @@
 #define EXPORT
 
 #undef VARARGS
-#ifdef __cplusplus
+#if 1
 #define ANYARGS (...)
 #define VARARGS(first)  (first, ...)
 #define VARARGS2(first, second)  (first, second, ...)
@@ -131,6 +131,9 @@
 #define VARARGS2(first, second) ()
 #endif /* __cplusplus */
 
+/* Sometimes BLT uses variable named bool which fails with GCC 15 */
+#define bool boolv
+
 #undef MIN
 #define MIN(a,b)	(((a)<(b))?(a):(b))
 
--- a/generic/bltGrElem.c
+++ b/generic/bltGrElem.c
@@ -55,8 +55,8 @@
 
 #include "bltGrElem.h"
 
-extern Element *Blt_BarElement();
-extern Element *Blt_LineElement();
+extern Element *Blt_BarElement(Graph *graphPtr, char *name, Blt_Uid type);
+extern Element *Blt_LineElement(Graph *graphPtr, char *name, Blt_Uid classUid);
 
 static Blt_VectorChangedProc VectorChangedProc;
 
