Fix C23 issues#25
Conversation
gcc 15 is more strict and compiles C by default with C23. `noop` is used as a default null initializer, but now it must have the correct type, so add a cast. See also: https://bugs.gentoo.org/946954
|
Hm, I figured this was caused by latest wayland but apparently it's C23? In any event, #27 might be a cleaner solution. |
|
I'm not sure but AFAIK calling a function with wrong number of arguments is UB, i.e. this noop hack is not a valid way of doing the thing. |
|
At least it fixes the issue for me. So thanks <3 Used this in the PKBUILD file: |
You're correct (6.3.2.3) :
That being said, the fix works on my install as well ;) |
|
Thank you for the fix! |
gcc 15 is more strict and compiles C by default with C23.
noopis used as a default null initializer, but now it must have the correct type, so add a cast.See also: https://bugs.gentoo.org/946954