summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2022-06-29 12:00:36 -0700
committerJim Meyering <meyering@fb.com>2022-06-29 12:00:36 -0700
commit98376d798878aea5b094a178c4d13d5b16a609a6 (patch)
treec605e1faaa412b8f36b267d06202f028fc448405 /src
parente2aec8c91e9d6ed3fc76f9f145dec8a456ce623a (diff)
downloadgrep-98376d798878aea5b094a178c4d13d5b16a609a6.tar.gz
build: add parentheses to placate clang-14
* src/dfasearch.c (regex_compile): Parenthesize to avoid this warning: dfasearch.c:154:43: error: operator '?:' has lower precedence than '|'; '|' will be evaluated first [-Werror,-Wbitwise-conditional-parentheses]
Diffstat (limited to 'src')
-rw-r--r--src/dfasearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfasearch.c b/src/dfasearch.c
index 2720b3a3..91f776a6 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -151,7 +151,7 @@ regex_compile (struct dfa_comp *dc, char const *p, idx_t len,
/* Do not use a fastmap with -i, to work around glibc Bug#20381. */
verify (UCHAR_MAX < IDX_MAX);
idx_t uchar_max = UCHAR_MAX;
- pat.fastmap = syntax_only | match_icase ? NULL : ximalloc (uchar_max + 1);
+ pat.fastmap = (syntax_only | match_icase) ? NULL : ximalloc (uchar_max + 1);
pat.translate = NULL;