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
programs
tst-localedef-path-norm.root
broken_cur_max.c
C_name.c
C-address.c
C-collate.c
C-ctype.c
C-identification.c
C-measurement.c
C-messages.c
C-monetary.c
C-name.c
C-numeric.c
C-paper.c
C-telephone.c
C-time.c
C-translit.h.in
categories.def
coll-lookup.c
coll-lookup.h
duplocale.c
elem-hash.h
findlocale.c
freelocale.c
gen-translit.py
global-locale.c
hashval.h
indigits.h
indigitswc.h
iso-639.def
iso-3166.def
iso-4217.def
langinfo.h
lc-address.c
lc-collate.c
lc-ctype.c
lc-identification.c
lc-measurement.c
lc-messages.c
lc-monetary.c
lc-name.c
lc-numeric.c
lc-paper.c
lc-telephone.c
lc-time.c
loadarchive.c
loadlocale.c
locale.h
localeconv.c
localeinfo.h
localename.c
locarchive.h
Makefile
mb_cur_max.c
newlocale.c
nl_langinfo_l.c
nl_langinfo.c
outdigits.h
outdigitswc.h
setlocale.c Do not use array parameter to new_composite_name (bug 26726) 2020-10-30 21:39:12 +00:00
strlen-hash.h
SYS_libc.c
tst-C-locale.c
tst-duplocale.c
tst-locale-locpath.sh
tst-localedef-path-norm.c
tst-locname.c
uselocale.c
Versions
weight.h
weightwc.h
xlocale.c