From c0881d81467216ecdfa1452c54271e7f60c8e4a5 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Wed, 14 Aug 2019 11:20:31 +0900 Subject: [PATCH] fix to escape warning when ONIG_DEBUG_PARSE only enabled --- src/regexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regexec.c b/src/regexec.c index 634ee42..7401b92 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -129,7 +129,7 @@ typedef struct { } MatchArg; -#ifdef ONIG_DEBUG +#if defined(ONIG_DEBUG_COMPILE) || defined(ONIG_DEBUG_MATCH) /* arguments type */ typedef enum { @@ -615,7 +615,7 @@ print_compiled_byte_code(FILE* f, regex_t* reg, int index, break; } } -#endif /* ONIG_DEBUG */ +#endif /* defined(ONIG_DEBUG_COMPILE) || defined(ONIG_DEBUG_MATCH) */ #ifdef ONIG_DEBUG_COMPILE extern void -- 2.40.0