diff options
author | Jim Meyering <meyering@fb.com> | 2020-12-29 19:29:21 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2020-12-30 08:23:08 -0800 |
commit | 8789f71bc66119dacab3582d7874c9d143593968 (patch) | |
tree | 9bb7cdb62c79870b21b9248c5c4c4f34e77498d5 | |
parent | 5398acf971f201aa0383ea4af15a567388b5c8eb (diff) | |
download | grep-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.c | 2 |
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; |