summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.conf1
-rw-r--r--src/dfasearch.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index b640654b..53355d3d 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -25,6 +25,7 @@ avoided_gnulib_modules='
gnulib_modules='
announce-gen
argmatch
+assert-h
c-ctype
c-stack
c-strcase
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);