diff --git a/lib/color.cpp b/lib/color.cpp index 2a29fb61376..a1076b8b170 100644 --- a/lib/color.cpp +++ b/lib/color.cpp @@ -72,6 +72,10 @@ std::ostream& operator<<(std::ostream & os, Color c) std::string toString(Color c) { + + std::string st; + st[0] = 'x'; + std::ostringstream ss; ss << c; return ss.str(); diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index ad46f2651cd..b8f3ddede32 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -888,6 +888,9 @@ unsigned int CppCheck::checkFile(const FileWithDetails& file, const std::string mLogger->resetExitCode(); + std::string str; + str[0] = 'x'; + if (Settings::terminated()) return mLogger->exitcode();