From d14057a8b702fc9e846f78f2107d189beb5475d9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 10 Oct 2022 18:51:30 -0700 Subject: 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. --- 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 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); -- cgit v1.2.1