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 --- inet/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inet/Makefile') diff --git a/inet/Makefile b/inet/Makefile index 9b96e57cac..a5ef1ec0a3 100644 --- a/inet/Makefile +++ b/inet/Makefile @@ -106,6 +106,9 @@ CFLAGS-either_ntoh.c += -fexceptions CFLAGS-either_hton.c += -fexceptions CFLAGS-getnetgrent.c += -fexceptions CFLAGS-getnetgrent_r.c += -fexceptions +CFLAGS-in6_addr.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-if_index.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-ifaddrs.c += $(config-cflags-wno-ignored-attributes) CFLAGS-tst-checks-posix.c += -std=c99 CFLAGS-tst-sockaddr.c += -fno-strict-aliasing -- cgit v1.2.3