grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v3.7-96-g98376d7


From: Jim Meyering
Subject: grep branch, master, updated. v3.7-96-g98376d7
Date: Wed, 29 Jun 2022 15:01:00 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  98376d798878aea5b094a178c4d13d5b16a609a6 (commit)
      from  e2aec8c91e9d6ed3fc76f9f145dec8a456ce623a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=98376d798878aea5b094a178c4d13d5b16a609a6


commit 98376d798878aea5b094a178c4d13d5b16a609a6
Author: Jim Meyering <meyering@fb.com>
Date:   Wed Jun 29 12:00:36 2022 -0700

    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]

diff --git a/src/dfasearch.c b/src/dfasearch.c
index 2720b3a..91f776a 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;
 

-----------------------------------------------------------------------

Summary of changes:
 src/dfasearch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]