#85 消除部分警告

This commit is contained in:
zhengchao
2018-11-26 16:27:06 +08:00
parent bd18a66a17
commit c31f7cbaa7
4 changed files with 8 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ TEST(PatternReplace, Grouping1)
const char* find="(?<name1>John)|(?<name2>李梅梅)|(?<name3>Jake)";
const char* replacement="${name1:+Joseph:${name2:+王桃花:Keith}}";
const char* input="John loves 李梅梅, 李梅梅 loves Jake and Jake doesn't care about John and 李梅梅.";
const char* expect="Joseph loves 王桃花, 王桃花 loves Keith and Keith doesn't care about Joseph and 王桃花.";
__attribute__((unused)) const char* expect="Joseph loves 王桃花, 王桃花 loves Keith and Keith doesn't care about Joseph and 王桃花.";
char* output=NULL;
size_t output_sz=0;