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 --- resource/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resource') diff --git a/resource/Makefile b/resource/Makefile index d3d230a538..a005eab3e5 100644 --- a/resource/Makefile +++ b/resource/Makefile @@ -28,3 +28,6 @@ routines := getrlimit setrlimit getrlimit64 setrlimit64 getrusage ulimit \ tests = tst-getrlimit bug-ulimit1 include ../Rules + +CFLAGS-getrlimit64.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-getrlimit.c += $(config-cflags-wno-ignored-attributes) -- cgit 1.4.1