]> granicus.if.org Git - onig/commitdiff
fix to escape warning when ONIG_DEBUG_PARSE only enabled
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 14 Aug 2019 02:20:31 +0000 (11:20 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Wed, 14 Aug 2019 02:20:31 +0000 (11:20 +0900)
src/regexec.c

index 634ee4221b142cdfa0a4e24186b6ebff197a72ed..7401b92381a2d873a6f217aab1ac11fb4a0efe61 100644 (file)
@@ -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