glibc/locale
Martin Jansa c651f9da53 locale: prevent maybe-uninitialized errors with -Os [BZ #19444]
Fixes following error when building  with -Os:
| In file included from strcoll_l.c:43:
| strcoll_l.c: In function '__strcoll_l':
| ../locale/weight.h:31:26: error: 'seq2.back_us' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
|    int_fast32_t i = table[*(*cpp)++];
|                           ^~~~~~~~~
| strcoll_l.c:304:18: note: 'seq2.back_us' was declared here
|    coll_seq seq1, seq2;
|                   ^~~~
| In file included from strcoll_l.c:43:
| ../locale/weight.h:31:26: error: 'seq1.back_us' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
|    int_fast32_t i = table[*(*cpp)++];
|                           ^~~~~~~~~
| strcoll_l.c:304:12: note: 'seq1.back_us' was declared here
|    coll_seq seq1, seq2;
|             ^~~~
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
2022-10-05 18:04:13 -03:00
..
bits
programs
tst-localedef-path-norm.root
broken_cur_max.c
C_name.c
C-address.c
C-collate-seq.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
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