Control: tags -1 patch
thanks

On Mon, Feb 17, 2025 at 05:56:10PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
> severity of this report will be raised before the forky release.
> 
> The full build log can be found at:
> http://qa-logs.debian.net/2025/02/16/amd64exp/t4kcommon_0.1.1-12_unstable_gccexp.log.gz
> The last lines of the build log are at the end of this report.
> [...]

The lines 2739 and following from this log are relevant, they state

| t4k_common.h:129:4: error: cannot use keyword 'false' as enumeration constant
|   129 |    false,
|       |    ^~~~~
| t4k_common.h:129:4: note: 'false' is a keyword with '-std=c23' onwards
| t4k_common.h:132:1: error: expected ';', identifier or '(' before 'bool'
|   132 | bool;
|       | ^~~~

(all other errors are just repetitions of these)

and the attached simple patch (valid since C99) fixes the FTBFS.

HTH,
Flo
Index: t4kcommon-0.1.1/src/t4k_common.h
===================================================================
--- t4kcommon-0.1.1.orig/src/t4k_common.h
+++ t4kcommon-0.1.1/src/t4k_common.h
@@ -124,12 +124,7 @@
 // #define _(String) gettext (String)
 
 #ifndef bool
-typedef enum
-{
-   false, 
-   true
-}
-bool;
+#include <stdbool.h>
 #endif
 
 // Debug macros

Attachment: signature.asc
Description: PGP signature

Reply via email to