From 98376d798878aea5b094a178c4d13d5b16a609a6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 29 Jun 2022 12:00:36 -0700 Subject: 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] --- src/dfasearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.1