# HG changeset patch # User Matti Hamalainen # Date 1579131979 -7200 # Node ID 69f1cb7f9b38399d1e23cb2836d20c0cd5a5785b # Parent f92f1b3d7fd44643708be0e0017554cff3d78490 Quiet some warnings. diff -r f92f1b3d7fd4 -r 69f1cb7f9b38 th_regex.c --- 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)