glibc/iconv
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
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_cache.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_charset.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_close.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_conf.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_db.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_dl.c Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
gconv_int.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_open.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_simple.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv_trans.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gconv.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv_close.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv_open.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
iconv_prog.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconv.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iconvconfig.c Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372] 2019-03-21 17:53:03 -03:00
iconvconfig.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
loop.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
skeleton.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strtab.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test-gconv-modules Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-iconv1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-iconv3.c Convert tst-iconv3 to use test-skeleton. 2015-02-25 16:01:13 -08:00
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-iconv-mt.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Versions Complete the removal of __gconv_translit_find 2014-09-12 09:17:32 +02:00