[PATCH] stdio-common: Fix C23-ism in formatted output specifier tests [BZ #32360]
Florian Weimer
fweimer@redhat.com
Fri Nov 15 17:04:57 GMT 2024
* Maciej W. Rozycki:
> Nameless function parameters have only been added to ISO C with the C23
> revision of the language standard. Give names to the unused parameters
> of the stub 'dladdr' implementation then so as to make compilation happy
> with the earlier language definitions, fixing errors such as:
>
> tst-printf-format-skeleton.c:374:9: error: parameter name omitted
> 374 | dladdr (const void *, Dl_info *)
>
> reported by older compilers.
> ---
> Hi,
>
> Verified natively with `powerpc64le-linux-gnu' and GCC 14 as well as
> `x86_64-linux-gnu' and GCC 6. OK to apply?
Okay.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
I'll send a patch next week to build with -Werror=missing-parameter-name
if the option exists.
Thanks,
Florian
More information about the Libc-alpha
mailing list