summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-10-10 18:51:30 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-10-11 09:05:15 -0700
commitd14057a8b702fc9e846f78f2107d189beb5475d9 (patch)
tree5fba92dd2c4eb118a1ab1846b3e9710b9167eff7 /src
parent1b1b496eb2e84af713be471b8c54f0bc3b4c4757 (diff)
downloadgrep-d14057a8b702fc9e846f78f2107d189beb5475d9.tar.gz
maint: prefer C23 style for static_assert
* bootstrap.conf (gnulib_modules): Add assert-h, for static_assert. * src/dfasearch.c (regex_compile): Prefer static_assert to verify.
Diffstat (limited to 'src')
-rw-r--r--src/dfasearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfasearch.c b/src/dfasearch.c
index 91f776a6..a71902a8 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -149,7 +149,7 @@ regex_compile (struct dfa_comp *dc, char const *p, idx_t len,
pat.allocated = 0;
/* Do not use a fastmap with -i, to work around glibc Bug#20381. */
- verify (UCHAR_MAX < IDX_MAX);
+ static_assert (UCHAR_MAX < IDX_MAX);
idx_t uchar_max = UCHAR_MAX;
pat.fastmap = (syntax_only | match_icase) ? NULL : ximalloc (uchar_max + 1);