glibc/locale
Martin Jansa 4444be051c 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>

(cherry picked from commit c651f9da53)
2022-12-28 17:33:45 -03:00
..
bits Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
programs localedef: Support building for older C standards 2022-07-05 10:30:20 +02: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 2022-01-01 11:40:24 -08:00
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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
categories.def Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
coll-lookup.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
coll-lookup.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
duplocale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
gen-translit.py Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
global-locale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
hashval.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
indigits.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
indigitswc.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
iso-639.def Add rif_MA locale [BZ #27781] 2022-04-07 14:59:41 +02: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 2022-01-01 11:40:24 -08:00
lc-address.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-collate.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-ctype.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-identification.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-measurement.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-messages.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-monetary.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-name.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-numeric.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-paper.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-telephone.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lc-time.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
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 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
localeconv.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
localeinfo.h locale: Add more cached data to LC_CTYPE 2022-05-23 11:06:31 +02:00
localename.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
locarchive.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Makefile locale: Optimize tst-localedef-path-norm 2022-07-22 11:06:16 -03:00
mb_cur_max.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
newlocale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nl_langinfo_l.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
nl_langinfo.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
outdigits.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
outdigitswc.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
setlocale.c locale: Remove cleanup function pointer from struct __localedata 2022-05-23 11:06:31 +02:00
strlen-hash.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
SYS_libc.c
tst-C-locale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-duplocale.c
tst-locale-locpath.sh Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-localedef-path-norm.c locale: Optimize tst-localedef-path-norm 2022-07-22 11:06:16 -03:00
tst-locname.c
uselocale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Versions
weight.h locale: prevent maybe-uninitialized errors with -Os [BZ #19444] 2022-12-28 17:33:45 -03:00
weightwc.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xlocale.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00