From: K.Kosako Date: Wed, 14 Aug 2019 02:20:31 +0000 (+0900) Subject: fix to escape warning when ONIG_DEBUG_PARSE only enabled X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0881d81467216ecdfa1452c54271e7f60c8e4a5;p=onig fix to escape warning when ONIG_DEBUG_PARSE only enabled --- 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