From 8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 11 Mar 2022 10:40:44 -0300 Subject: 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 --- stdio-common/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdio-common') 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. -- cgit 1.4.1