* Artur Frenszek-Iwicki:
>> indi-3rdparty-drivers:
>> error: expected ‘;’, identifier or ‘(’ before ‘bool’
>> Looks like the syntax 'typedef enum { FALSE, TRUE } bool;' is no more
>> accepted, but searching in the net it was perfectly fine.
>
> Looking at the build logs, it seems that while a standard is explicitly
> provided for C++ sources (-std=gnu++14), this is not the case for C sources.
> GCC15 changed the default standard to gnu23, and the C23 standard made "bool"
> a keyword, so it's disallowed to define a custom type with the name "bool".
And this definition isn't really ABI-compatible with the one used by the
C++ sources. I'm pretty sure this package is partially broken as a
result.
For a long time, we've warned about this:
…/indi-eqmod/align/chull.h:85:13: warning: type of ‘AddOne’ does not match
original declaration [-Wlto-type-mismatch]
85 | extern bool AddOne(tVertex p);
| ^
…/indi-eqmod/align/chull/chull.c:416:6: note: return value type mismatch
416 | bool AddOne(tVertex p)
| ^
…/indi-eqmod/align/chull/chull.c:416:6: note: type ‘bool’ should match type
‘bool’
…/indi-eqmod/align/chull/chull.c:416:6: note: ‘AddOne’ was previously declared
here
…/indi-eqmod/align/chull/chull.c:416:6: note: code may be misoptimized unless
‘-fno-strict-aliasing’ is used
…/indi-eqmod/align/chull.h:76:14: warning: type of ‘faces’ does not match
original declaration [-Wlto-type-mismatch]
76 | extern tFace faces;
| ^
…/indi-eqmod/align/chull/chull.c:83:7: note: ‘faces’ was previously declared
here
83 | tFace faces = NULL;
| ^
Thanks,
Florian
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue