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 --- dirent/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'dirent') diff --git a/dirent/Makefile b/dirent/Makefile index b80f6a73ea..cfa61826ed 100644 --- a/dirent/Makefile +++ b/dirent/Makefile @@ -37,6 +37,7 @@ CFLAGS-scandir.c += $(uses-callbacks) CFLAGS-scandir64.c += $(uses-callbacks) CFLAGS-scandir-tail.c += $(uses-callbacks) CFLAGS-scandir64-tail.c += $(uses-callbacks) +CFLAGS-dirfd.c += $(config-cflags-wno-ignored-attributes) include ../Rules -- cgit 1.4.1