Mercurial > hg > th-libs
changeset 609:69f1cb7f9b38
Quiet some warnings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Jan 2020 01:46:19 +0200 |
parents | f92f1b3d7fd4 |
children | a0e8d9c6300b |
files | th_regex.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/th_regex.c Thu Jan 16 01:09:25 2020 +0200 +++ b/th_regex.c Thu Jan 16 01:46:19 2020 +0200 @@ -639,18 +639,19 @@ BOOL *pmatched, th_regex_match_node **pmatches, const ssize_t max, const int flags) { - th_regex_match_node *matches = NULL; - size_t soffs, coffs; +// th_regex_match_node *matches = NULL; BOOL matched; + (void) pmatches; + (void) max; // Check given pattern and string if (expr == NULL || haystack == NULL) return THERR_NULLPTR; // Start matching +#if 0 + size_t soffs, coffs; soffs = coffs = 0; - -#if 0 while (haystack[soffs] != 0) { if ((matched = th_regex_do_match_expr(expr, haystack, &coffs, flags))) @@ -661,7 +662,8 @@ } } #else - matched = th_regex_do_match_expr(expr, haystack, &coffs, flags); + size_t offs = 0; + matched = th_regex_do_match_expr(expr, haystack, &offs, flags); #endif if (pmatched != NULL)