]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Supress unused command arguments warning with clang
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Oct 2025 17:08:31 +0000 (14:08 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Oct 2025 15:54:03 +0000 (12:54 -0300)
clang 20 issues an warning for the unused '-c' argument used to create
errlist-data-aux-shared.S, errlist-data-aux.S, siglist-aux-shared.S,
and siglist-aux.S.  Filter out the '-c' from the $(compile-command.c).

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
stdio-common/Makefile

index da337cb4e18846661d6f74d840976ab4f2a47d08..cb816de3359bb70713cf7aae06d10a4059990473 100644 (file)
@@ -498,11 +498,11 @@ 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
+       $(filter-out -c,$(compile-command.c)) $(pic-cppflags) $(pic-ccflag) $(no-stack-protector) -S
 
 $(objpfx)errlist-data-aux.S: errlist-data-gen.c
        $(make-target-directory)
-       $(compile-command.c) $(pie-default) $(no-stack-protector) -S
+       $(filter-out -c,$(compile-command.c)) $(pie-default) $(no-stack-protector) -S
 
 ifndef no_deps
 -include $(objpfx)errlist-data-aux.S.d $(objpfx)errlist-data-aux-shared.S.d
@@ -514,11 +514,11 @@ $(addprefix $(objpfx)errlist-data, $(object-suffixes-noshared)): \
 
 $(objpfx)siglist-aux-shared.S: siglist-gen.c
        $(make-target-directory)
-       $(compile-command.c) $(pic-cppflags) $(pic-ccflag) $(no-stack-protector) -S
+       $(filter-out -c,$(compile-command.c)) $(pic-cppflags) $(pic-ccflag) $(no-stack-protector) -S
 
 $(objpfx)siglist-aux.S: siglist-gen.c
        $(make-target-directory)
-       $(compile-command.c) $(pie-default) $(no-stack-protector) -S
+       $(filter-out -c,$(compile-command.c)) $(pie-default) $(no-stack-protector) -S
 
 ifndef no_deps
 -include $(objpfx)siglist-aux.S.d $(objpfx)siglist-aux-shared.S.d