glibc/locale
Joseph Myers 5c3b0374eb Do not use array parameter to new_composite_name (bug 26726)
Among the warnings causing a glibc build with GCC 11 to fail is one
for a call new_composite_name in setlocale.c.  The newnames argument
is declared as an array with __LC_LAST elements, but when the category
argument is not LC_ALL, it actually only has one element.  Since the
number of elements depends on the first argument to the function, it
seems clearer to declare the argument as a pointer.

Tested with build-many-glibcs.py for arm-linux-gnueabi, where this
allows the build to get further.

Reviewed-by: DJ Delorie <dj@redhat.com>
2020-10-30 21:39:12 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
programs Use 2020 as copyright year. 2020-04-27 10:34:52 -04:00
tst-localedef-path-norm.root localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
broken_cur_max.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C_name.c
C-address.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-collate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-ctype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-identification.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-measurement.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-messages.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-monetary.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-name.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-numeric.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-paper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-telephone.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-time.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
C-translit.h.in locale: Add transliteration for Geresh, Gershayim (U+05F3, U+05F4) 2020-05-15 10:38:10 +02:00
categories.def Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
coll-lookup.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
coll-lookup.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
duplocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elem-hash.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
findlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
freelocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gen-translit.py Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
global-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hashval.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
indigits.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
indigitswc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
iso-639.def Add mnw language code [BZ #25139] 2019-11-06 08:15:16 +01:00
iso-3166.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
iso-4217.def Prefer https to http for gnu.org and fsf.org URLs 2019-09-07 02:43:31 -07:00
langinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-address.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-collate.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-ctype.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-identification.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-measurement.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-messages.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-monetary.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-name.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-numeric.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-paper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-telephone.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lc-time.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
loadarchive.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
loadlocale.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
locale.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localeconv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localeinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
localename.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locarchive.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile localedef: Add verbose messages for failure paths. 2020-04-26 13:55:58 -04:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
newlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
outdigits.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
outdigitswc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setlocale.c Do not use array parameter to new_composite_name (bug 26726) 2020-10-30 21:39:12 +00:00
strlen-hash.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
SYS_libc.c
tst-C-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-duplocale.c
tst-locale-locpath.sh Fix locale/tst-locale-locpath cross-testing when sshd sets LANG. 2020-01-24 17:23:07 +00:00
tst-localedef-path-norm.c locale/tst-localedef-path-norm: Don't create $(complocaledir) 2020-04-30 16:28:07 -04:00
tst-locname.c
uselocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions
weight.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
weightwc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xlocale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00