aboutsummaryrefslogtreecommitdiff
path: root/stdlib/drand48-iter.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2020-10-30 21:39:12 +0000
committerJoseph Myers <joseph@codesourcery.com>2020-10-30 21:39:12 +0000
commit5c3b0374ebe0aa4b0a434c0addb4c455886a0986 (patch)
treef98fc76afbd04beda539fcb25530131705e9c241 /stdlib/drand48-iter.c
parent2098d4034d398cbde6ccd4a2aaac52c518374698 (diff)
downloadglibc-5c3b0374ebe0aa4b0a434c0addb4c455886a0986.tar
glibc-5c3b0374ebe0aa4b0a434c0addb4c455886a0986.tar.gz
glibc-5c3b0374ebe0aa4b0a434c0addb4c455886a0986.tar.bz2
glibc-5c3b0374ebe0aa4b0a434c0addb4c455886a0986.zip
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>
Diffstat (limited to 'stdlib/drand48-iter.c')
0 files changed, 0 insertions, 0 deletions