glibc/locale/programs
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
..
3level.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap.c Add fall-through comments. 2019-02-12 10:30:34 +00:00
charmap.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
config.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-address.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-collate.c Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372] 2019-03-21 17:53:03 -03:00
ld-ctype.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
ld-identification.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-measurement.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-messages.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-monetary.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-name.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-numeric.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-paper.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-telephone.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale-spec.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
localedef.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
localedef.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locarchive.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-token.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xmalloc.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xstrdup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00