"Modern C" and the X.Org software
Enrico Weigelt, metux IT consult
lkml at metux.net
Mon Jun 10 11:56:10 UTC 2024
On 24.03.24 21:58, Alan Coopersmith wrote:
> On 12/11/23 14:29, Alan Coopersmith wrote:
>> I also added -std=gnu23 to my build flags, which found one more issue
>> due to C23 defining "true" as an rvalue, not an lvalue:
>>
>> Fix C23 build by renaming variable 'true'
>> https://gitlab.freedesktop.org/xorg/app/xprop/-/merge_requests/8
>
> Further testing turned up a similar issue in xf86-video-vbox:
> https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/merge_requests/5
We had more of such fun in older xserver versions (eg. using "bool" as
variable name), so some newer drivers that include stdbool.h need some
extra trickery.
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info at metux.net -- +49-151-27565287
More information about the xorg-devel
mailing list