From 53bc1ed6b716a5b5672c058851304b213cf1858c Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Sat, 13 Aug 2016 23:28:01 +0900 Subject: [PATCH] output warning if onig_initialize() is not called explicitly --- src/regcomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/regcomp.c b/src/regcomp.c index 2fac412..3cc7a91 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -5435,6 +5435,8 @@ onig_reg_init(regex_t* reg, OnigOptionType option, r = onig_initialize_encoding(enc); if (r != 0) return ONIGERR_FAIL_TO_INITIALIZE; + + onig_warning("You didn't call onig_initialize() explicitly"); #endif } -- 2.40.0