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

Bug#1114072: bmf: FTBFS: config.h:42:16: error: cannot use keyword 'false' as enumeration constant



control: tags 1114072 + pending
control: tags 1114072 + 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: Thu, 11 Dec 2025 03:00:39 +0500
Subject: Fix boolean type for gcc-15
Forwarded: not-needed

--- a/config.h
+++ b/config.h
@@ -39,7 +39,7 @@
 typedef const char* cpchar;
 typedef const byte* cpbyte;
 typedef const void* cpvoid;
-typedef enum { false, true } bool_t;
+typedef bool bool_t;
 
 #define min(a,b)        ( (a)<(b) ? (a) : (b) )
 #define max(a,b)        ( (a)<(b) ? (b) : (a) )

Attachment: signature.asc
Description: PGP signature


Reply to: