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 --- string/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'string') diff --git a/string/Makefile b/string/Makefile index 641e062bbb..938f528b8d 100644 --- a/string/Makefile +++ b/string/Makefile @@ -231,6 +231,15 @@ LDFLAGS-tst-xbzero-opt = -z now CFLAGS-memcpy.c += $(no-stack-protector) CFLAGS-wordcopy.c += $(no-stack-protector) +CFLAGS-argz-next.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-basename.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-ffs.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-memmem.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-memchr.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-mempcpy.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-stpcpy.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strnlen.c += $(config-cflags-wno-ignored-attributes) + ifeq ($(run-built-tests),yes) $(objpfx)tst-svc-cmp.out: tst-svc.expect $(objpfx)tst-svc.out cmp $^ > $@; \ -- cgit 1.4.1