From: Bruno Haible <bruno@clisp.org> Date: Mon, 16 Sep 2024 20:40:40 +0000 (+0200) Subject: unilbrk tests: Avoid two gcc -Wparentheses warnings. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9fee05f0622284fd40358dadbc20e3e9ed532abc;p=gnulib.git unilbrk tests: Avoid two gcc -Wparentheses warnings. * tests/unilbrk/test-uc-possible-linebreaks.c (main): Add redundant parentheses. --- diff --git a/ChangeLog b/ChangeLog index a619271ded..792ca33836 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-09-16 Bruno Haible <bruno@clisp.org> + + unilbrk tests: Avoid two gcc -Wparentheses warnings. + * tests/unilbrk/test-uc-possible-linebreaks.c (main): Add redundant + parentheses. + 2024-09-16 Paul Eggert <eggert@cs.ucla.edu> parse-datetime no longer depends on nstrftime diff --git a/tests/unilbrk/test-uc-possible-linebreaks.c b/tests/unilbrk/test-uc-possible-linebreaks.c index cebead6723..31bab9eb15 100644 --- a/tests/unilbrk/test-uc-possible-linebreaks.c +++ b/tests/unilbrk/test-uc-possible-linebreaks.c @@ -148,9 +148,9 @@ main (int argc, char *argv[]) the space. Similarly when the first two characters at the start of the text have property LBP_CM and LBP_ZWJ, respectively. (LB9). */ - if (!(((j == 1 || (j > 1 && (input[j - 2] >= 0x000A && input[j - 2] <= 0x000D || input[j - 2] == 0x0085))) + if (!(((j == 1 || (j > 1 && ((input[j - 2] >= 0x000A && input[j - 2] <= 0x000D) || input[j - 2] == 0x0085))) && input[j - 1] == 0x0020) - || ((j == 2 || (j > 2 && (input[j - 3] >= 0x000A && input[j - 3] <= 0x000D || input[j - 3] == 0x0085))) + || ((j == 2 || (j > 2 && ((input[j - 3] >= 0x000A && input[j - 3] <= 0x000D) || input[j - 3] == 0x0085))) && ((input[j - 2] == 0x0020 && input[j - 1] == 0x0020) || (input[j - 2] == 0x0308 && input[j - 1] == 0x200D) || (input[j - 2] == 0x200D && input[j - 1] == 0x0308)))))