From a8ab278b14d65a0a4de0dcfccbddaca6686ec08a Mon Sep 17 00:00:00 2001 From: Madhusoodan Pataki Date: Tue, 13 Jan 2026 17:53:16 +0530 Subject: Remove unused label_counter parameter from emit_match_logic --- plugins/regex.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/regex.c b/plugins/regex.c index b56515c..fb63986 100644 --- a/plugins/regex.c +++ b/plugins/regex.c @@ -5,7 +5,7 @@ #include #include -static void emit_match_logic(const char *pattern, FILE *out, int *label_counter); +static void emit_match_logic(const char *pattern, FILE *out); void regex_transpile(const char *input_body, const ZApi *api) { @@ -36,8 +36,7 @@ void regex_transpile(const char *input_body, const ZApi *api) fprintf(target, " if (!text) return 0;\n"); fprintf(target, " const char *c = text;\n"); - int label_id = 0; - emit_match_logic(pattern, target, &label_id); + emit_match_logic(pattern, target); fprintf(target, " return 1;\n"); fprintf(target, "}\n"); @@ -47,7 +46,7 @@ void regex_transpile(const char *input_body, const ZApi *api) free(pattern); } -static void emit_match_logic(const char *pattern, FILE *out, int * /*label_counter*/) +static void emit_match_logic(const char *pattern, FILE *out) { const char *c = pattern; -- cgit v1.2.3