From 8efa8fc97dab1b47493be87e35fb7e503b883bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 21 Aug 2025 15:35:56 +0200 Subject: [PATCH] test --- lib/color.cpp | 4 ++++ lib/cppcheck.cpp | 3 +++ 2 files changed, 7 insertions(+) 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();