From 93dd13d97a62fa1af80926e89d0ad9fb4570d539 Mon Sep 17 00:00:00 2001 From: TSUYUSATO Kitsune Date: Sat, 13 May 2023 10:04:28 +0900 Subject: Remove warnings and errors in `regexec.c` with `ONIG_DEBUG_...` macros (#7803) --- regexec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regexec.c') diff --git a/regexec.c b/regexec.c index e542ce7e21..81028138e0 100644 --- a/regexec.c +++ b/regexec.c @@ -1978,7 +1978,7 @@ onig_print_statistics(FILE* f) #ifdef ONIG_DEBUG_MATCH -static char * +static const char * stack_type_str(int stack_type) { switch (stack_type) { @@ -2098,8 +2098,8 @@ reset_match_cache_on_null_check(regex_t* reg, const UChar* pstart, const UChar* match_cache_point_end_bit = match_cache_point_end & 7; #ifdef ONIG_DEBUG_MATCH_CACHE - fprintf(stderr, "MATCH CACHE: reset start %ld (%ld index=%ld bits=%d)\n", match_cache_point_start, cache_point_start, match_cache_point_start_index, match_cache_point_start_bits); - fprintf(stderr, "MATCH CACHE: reset end %ld (%ld index=%ld bits=%d)\n", match_cache_point_end, cache_point_end, match_cache_point_end_index, match_cache_point_end_bits); + fprintf(stderr, "MATCH CACHE: reset start %ld (%ld index=%ld bit=%d)\n", match_cache_point_start, cache_point_start, match_cache_point_start_index, match_cache_point_start_bit); + fprintf(stderr, "MATCH CACHE: reset end %ld (%ld index=%ld bit=%d)\n", match_cache_point_end, cache_point_end, match_cache_point_end_index, match_cache_point_end_bit); #endif if (match_cache_point_start_index == match_cache_point_end_index) { -- cgit v1.2.1