From 0407db52ce8567d4871a940ab64514b23c00e209 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Sat, 8 Feb 2020 04:58:47 +0900 Subject: [PATCH] fix: warning: adding 'const char' to a string does not append to the string [-Wstring-plus-int] --- mecab/src/writer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mecab/src/writer.cpp b/mecab/src/writer.cpp index a7873d77..5fc4e83d 100644 --- a/mecab/src/writer.cpp +++ b/mecab/src/writer.cpp @@ -252,7 +252,8 @@ bool Writer::writeNode(Lattice *lattice, case '%': { // macros switch (*++p) { default: { - const std::string error = "unknown meta char: " + *p; + std::string error = "unknown meta char: "; + error += *p; lattice->set_what(error.c_str()); return false; }