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 --- stdlib/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'stdlib') diff --git a/stdlib/Makefile b/stdlib/Makefile index f7b25c1..417d525 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -375,6 +375,18 @@ CFLAGS-strfromd.c += $(libio-mtsafe) CFLAGS-strfromf.c += $(libio-mtsafe) CFLAGS-strfroml.c += $(libio-mtsafe) +CFLAGS-strtol.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtoul.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtoll.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtoull.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtof.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtof_l.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtod.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtod_l.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtold.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-strtold_l.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-secure-getenv.c += $(config-cflags-wno-ignored-attributes) + CFLAGS-tst-bsearch.c += $(stack-align-test-flags) CFLAGS-tst-qsort.c += $(stack-align-test-flags) CFLAGS-tst-makecontext.c += -funwind-tables -- cgit v1.1