From d7258f09bddf0715fdd409ceb7b537d1205d9e60 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 16 Nov 2023 19:09:59 +0900 Subject: [PATCH] [gib] Hide regex's re_max_failures ld pops up a warning about it being obsolete (I guess something is being picked up from libc), but since we have our own regex, there's no way it can go away without our "permission". --- libs/gib/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gib/regex.c b/libs/gib/regex.c index 4b7817d4f..9c1111ab2 100644 --- a/libs/gib/regex.c +++ b/libs/gib/regex.c @@ -2247,7 +2247,7 @@ compile_range (const char **p_ptr, const char *pend, char *translate, reg_syntax exactly that if always used MAX_FAILURE_SPACE each time we failed. This is a variable only so users of regex can assign to it; we never change it ourselves. */ -int re_max_failures = 2000; +static int re_max_failures = 2000; typedef const unsigned char *fail_stack_elt_t;