summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-12-29 19:29:21 -0800
committerJim Meyering <meyering@fb.com>2020-12-30 08:23:08 -0800
commit8789f71bc66119dacab3582d7874c9d143593968 (patch)
tree9bb7cdb62c79870b21b9248c5c4c4f34e77498d5
parent5398acf971f201aa0383ea4af15a567388b5c8eb (diff)
downloadgrep-8789f71bc66119dacab3582d7874c9d143593968.tar.gz
maint: add parentheses to avoid new clang-10 warning
* src/dfasearch.c (regex_compile): Parenthesize arith-OR vs ternary, to placate clang-10.
-rw-r--r--src/dfasearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfasearch.c b/src/dfasearch.c
index 8ede0ec4..a1904d7b 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -154,7 +154,7 @@ regex_compile (struct dfa_comp *dc, char const *p, ptrdiff_t len,
pat->allocated = 0;
/* Do not use a fastmap with -i, to work around glibc Bug#20381. */
- pat->fastmap = syntax_only | match_icase ? NULL : xmalloc (UCHAR_MAX + 1);
+ pat->fastmap = (syntax_only | match_icase) ? NULL : xmalloc (UCHAR_MAX + 1);
pat->translate = NULL;