diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-11 10:40:44 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-11-01 09:51:06 -0300 |
commit | 8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4 (patch) | |
tree | 9fe2d950df8424164112464dfbb5ec906b279757 /wcsmbs | |
parent | 5c5a8b99cf96b71940e36a9db66d3a61bc315016 (diff) | |
download | glibc-8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4.tar.gz glibc-8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4.tar.xz glibc-8d98c7c00f3f06545de9e5ce5cf778d2ab2450a4.zip |
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 <maskray@google.com>
Diffstat (limited to 'wcsmbs')
-rw-r--r-- | wcsmbs/Makefile | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index 4af102a3f6..aaa067fc69 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -84,24 +84,32 @@ CFLAGS-wcwidth.c += -I../wctype CFLAGS-wcswidth.c += -I../wctype strtox-CFLAGS = -I../include -CFLAGS-wcstol.c += $(strtox-CFLAGS) -CFLAGS-wcstoul.c += $(strtox-CFLAGS) +CFLAGS-wcstol.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) +CFLAGS-wcstoul.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) CFLAGS-wcstoll.c += $(strtox-CFLAGS) CFLAGS-wcstoull.c += $(strtox-CFLAGS) -CFLAGS-wcstod.c += $(strtox-CFLAGS) -CFLAGS-wcstold.c += $(strtox-CFLAGS) +CFLAGS-wcstod.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) +CFLAGS-wcstold.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) CFLAGS-wcstof128.c += $(strtox-CFLAGS) -CFLAGS-wcstof.c += $(strtox-CFLAGS) +CFLAGS-wcstof.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) CFLAGS-wcstol_l.c += $(strtox-CFLAGS) CFLAGS-wcstoul_l.c += $(strtox-CFLAGS) CFLAGS-wcstoll_l.c += $(strtox-CFLAGS) CFLAGS-wcstoull_l.c += $(strtox-CFLAGS) -CFLAGS-wcstod_l.c += $(strtox-CFLAGS) -CFLAGS-wcstold_l.c += $(strtox-CFLAGS) +CFLAGS-wcstod_l.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) +CFLAGS-wcstold_l.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) CFLAGS-wcstof128_l.c += $(strtox-CFLAGS) -CFLAGS-wcstof_l.c += $(strtox-CFLAGS) +CFLAGS-wcstof_l.c += $(strtox-CFLAGS) $(config-cflags-wno-ignored-attributes) CPPFLAGS-tst-wchar-h.c += -D_FORTIFY_SOURCE=2 +CFLAGS-wcschr.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-wmemchr.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-wmemset.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-mbrtowc.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-wcrtomb.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-wcstoll.c += $(config-cflags-wno-ignored-attributes) +CFLAGS-wcstoull.c += $(config-cflags-wno-ignored-attributes) + CFLAGS-isoc99_wscanf.c += -fexceptions CFLAGS-isoc99_fwscanf.c += -fexceptions CFLAGS-isoc99_vwscanf.c += -fexceptions |