diff options
author | Jim Meyering <meyering@fb.com> | 2022-06-29 12:00:36 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2022-06-29 12:00:36 -0700 |
commit | 98376d798878aea5b094a178c4d13d5b16a609a6 (patch) | |
tree | c605e1faaa412b8f36b267d06202f028fc448405 /src | |
parent | e2aec8c91e9d6ed3fc76f9f145dec8a456ce623a (diff) | |
download | grep-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.c | 2 |
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; |