summaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-11 10:40:44 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-11-01 09:51:06 -0300
commit8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4 (patch)
tree9fe2d950df8424164112464dfbb5ec906b279757 /stdio-common
parent5c5a8b99cf96b71940e36a9db66d3a61bc315016 (diff)
downloadglibc-8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4.tar.gz
configure: Use -Wno-ignored-attributes if compiler warns about multiple aliases
clang emits an warning when a double alias redirection is used, to warn the the original symbol will be used even when weak definition is overridden. However, this is a common pattern for weak_alias, where multiple alias are set to same symbol. Reviewed-by: Fangrui Song <maskray@google.com>
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 9c98c02884..401dac69de 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -381,6 +381,8 @@ CFLAGS-isoc99_vscanf.c += -fexceptions
CFLAGS-isoc99_fscanf.c += -fexceptions
CFLAGS-isoc99_scanf.c += -fexceptions
+CFLAGS-dprintf.c += $(config-cflags-wno-ignored-attributes)
+
# scanf14a.c and scanf16a.c test a deprecated extension which is no
# longer visible under most conformance levels; see the source files
# for more detail.