[PATCH 44/59] Supress unused command arguments warning with clang
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Wed Oct 22 19:06:20 GMT 2025
On 17/10/25 18:00, Florian Weimer wrote:
> * Adhemerval Zanella:
>
>> diff --git a/stdio-common/Makefile b/stdio-common/Makefile
>> index 8da164695f..fba6bd99fd 100644
>> --- a/stdio-common/Makefile
>> +++ b/stdio-common/Makefile
>> @@ -497,11 +497,15 @@ include ../Rules
>> # than 2.29 it might generate object sizes different than the expected ones.
>> $(objpfx)errlist-data-aux-shared.S: errlist-data-gen.c
>> $(make-target-directory)
>> - $(compile-command.c) $(pic-cppflags) $(pic-ccflag) $(no-stack-protector) -S
>> + $(compile-command.c) \
>> + $(config-cflags-wno-unused-command-line-arguments) \
>> + $(pic-cppflags) $(pic-ccflag) $(no-stack-protector) -S
>
> Maybe filter out the -c instead?
Indeed it is simpler, I will change it.
More information about the Libc-alpha
mailing list