On Fri, Oct 10, 2025 at 06:35:50PM +0200, Stefan Gehn wrote: > On 9/28/25 07:35, Sandro Tosi wrote: > > > > hey Stefan, > > im posting a recent build log showing the failures when building > > gkrellm-2.4.0 with gcc-15.2: https://paste.debian.net/hidden/6601e8a7/ > > > > Hope this may help with your code changes. > > > I can actually reproduce it with older clang/gcc via "-std=gnu23". > > The thing with C23 is that the change does not really bring any security to > function pointers because in glib/gtk/gkrellm function pointers usually have > a "void *data" argument but the callback functions are taking a "SomeStruct > *data" instead so virtually every function pointer is cast, thereby hiding > incompatibilities the same way as the ancient empty argument syntax. > > I'll see if I can finish gkrellm 2.5.0 in the next 1-2 weeks which fixes > this for now by setting a fixed C standard (commit > ee3f77a2654578519e9a6b5ea819f73b873fc6f1). > Passing a standard via CFLAGS should already work fine for gkrellm 2.4.0 as > well.
I've confirmed that adding export DEB_CFLAGS_MAINT_APPEND = -std=gnu17 to debian/rules fixes the build. > Regards, > Stefan cu Adrian

