[PATCH] stacktrace: fix a C23-ism in sigint_handler

Sam James sam@gentoo.org
Sat Feb 7 02:05:16 GMT 2026


Mark Wielaard <mark@klomp.org> writes:

> Hi Sam,
>
> On Wed, Feb 04, 2026 at 04:50:38PM +0000, Sam James wrote:
>> Mark Wielaard <mark@klomp.org> writes:
>> 
>> > clang 21 doesn't like ommitting a parameter name when not in C23 mode.
>> 
>> One of the things you and I discussed a little while ago ;)
>> 
>> You can use -Wmissing-parameter-name to catch this in GCC, btw.
>
> Thanks, I forgot about that. The attached patch contains a configure
> check to make sure -Wmissing-parameter-name is available. Adding it
> did catch the same issue with gcc.

LGTM. There is -Wdeprecated-non-prototype and also -Wfree-labels for
some other C23ish issues.

Reviewed-by: Sam James <sam@gentoo.org>

>
>
> [2. text/plain; 0001-configure-Add-Wmissing-parameter-name-if-available.patch]...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 418 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/elfutils-devel/attachments/20260207/70d6bf5c/attachment.sig>


More information about the Elfutils-devel mailing list