[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1096706: giftrans: ftbfs with GCC-15



control: tags 1096706 + pending
control: tags 1096706 + patch

Patch attached fixes gcc-15 build error.

Will be submitting upload on mentors.

Regards,
Syed Shahrukh Hussain.
From: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Date: Wed, 10 Dec 2025 18:22:39 +0500
Subject: Fix boolean type declaration conflict for gcc-15.
Forwarded: not-needed

--- a/giftrans.c
+++ b/giftrans.c
@@ -239,11 +239,11 @@
 static long int	pos;
 
 static char	rgbtxt[] = RGBTXT, *rgb = rgbtxt;
-static char	true[] = "True";
-static char	false[] = "False";
+static char	true_val[] = "True";
+static char	false_val[] = "False";
 
 #define	readword(buffer)	((buffer)[0]+256*(buffer)[1])
-#define	readflag(buffer)	((buffer)?true:false)
+#define	readflag(buffer)	((buffer)?true_val:false_val)
 #define	hex(c)			('a'<=(c)&&(c)<='z'?(c)-'a'+10:'A'<=(c)&&(c)<='Z'?(c)-'A'+10:(c)-'0')
 
 

Attachment: signature.asc
Description: PGP signature


Reply to: