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 Use '%z' instead of '%Z' on printf functions 2022-09-22 08:48:04 -03:00
tst-localedef-path-norm.root
broken_cur_max.c
C_name.c
C-address.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-collate-seq.c
C-collate.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-ctype.c locale: Add more cached data to LC_CTYPE 2022-05-23 11:06:31 +02:00
C-identification.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-measurement.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-messages.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-monetary.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-name.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-numeric.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-paper.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-telephone.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-time.c locale: Remove private union from struct __locale_data 2022-05-23 11:06:31 +02:00
C-translit.h.in
categories.def
coll-lookup.c
coll-lookup.h
duplocale.c
elem-hash.h Replace {u}int_fast{16|32} with {u}int32_t 2022-04-13 21:23:04 -05:00
findlocale.c locale: Remove cleanup function pointer from struct __localedata 2022-05-23 11:06:31 +02:00
freelocale.c
gen-translit.py
global-locale.c
hashval.h
indigits.h
indigitswc.h
iso-639.def Add rif_MA locale [BZ #27781] 2022-04-07 14:59:41 +02:00
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 locale: Remove cleanup function pointer from struct __localedata 2022-05-23 11:06:31 +02:00
loadlocale.c locale: Add more cached data to LC_CTYPE 2022-05-23 11:06:31 +02:00
locale.h
localeconv.c
localeinfo.h locale: Add more cached data to LC_CTYPE 2022-05-23 11:06:31 +02:00
localename.c
locarchive.h
Makefile locale: Optimize tst-localedef-path-norm 2022-07-22 11:06:16 -03:00
mb_cur_max.c
newlocale.c
nl_langinfo_l.c
nl_langinfo.c
outdigits.h
outdigitswc.h
setlocale.c locale: Remove cleanup function pointer from struct __localedata 2022-05-23 11:06:31 +02:00
strlen-hash.h
SYS_libc.c
tst-C-locale.c
tst-duplocale.c
tst-locale-locpath.sh
tst-localedef-path-norm.c locale: Optimize tst-localedef-path-norm 2022-07-22 11:06:16 -03:00
tst-locname.c
uselocale.c
Versions
weight.h locale: prevent maybe-uninitialized errors with -Os [BZ #19444] 2022-10-05 18:04:13 -03:00
weightwc.h
xlocale.c