summaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-28 14:08:31 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-29 12:54:03 -0300
commit1ab6a62e681036a6e31a903d84097b7f9e47f7bb (patch)
treeecb473cc43d7d19571d3b0167a81353e87928e1f /stdio-common
parent970364dac00b38333e5b2d91c90d11e80141d265 (diff)
Supress unused command arguments warning with clang
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>
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index da337cb4e1..cb816de335 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -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