glibc/locale
Gabriel F. T. Gomes 5abcddd794 Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372]
When -Werror=parentheses is in use, iconvconfig.c builds fail with:

  iconvconfig.c: In function ‘write_output’:
  iconvconfig.c:1084:34: error: suggest parentheses around ‘+’ inside ‘>>’ [-Werror=parentheses]
     hash_size = next_prime (nnames + nnames >> 1);
                             ~~~~~~~^~~~~~~~

This patch adds parentheses to the expression.  Not where suggested by
the compiler warning, but where it produces the expected result, i.e.:
where it has the effect of multiplying nnames by 1.5.

Likewise for elem_size in ld-collate.c.

Tested for powerpc64le.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2019-03-21 17:53:03 -03:00
..
bits
programs Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372] 2019-03-21 17:53:03 -03:00
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
strlen-hash.h
SYS_libc.c
tst-C-locale.c
tst-duplocale.c
tst-locname.c
uselocale.c
Versions
weight.h
weightwc.h
xlocale.c