Commit f64ff700 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2544] Silence the false positive reported by cppcheck.

The cppcheck seems to have difficulty to figure out that the variable is
set and initialized within a loop and that it is read within another
loop iteration.
parent 667d94d9
...@@ -131,6 +131,7 @@ public: ...@@ -131,6 +131,7 @@ public:
if (!first) { if (!first) {
stream << ", "; stream << ", ";
} else { } else {
// cppcheck-suppress unreadVariable
first = false; first = false;
} }
if (param.first == "name") { if (param.first == "name") {
......
...@@ -97,6 +97,7 @@ public: ...@@ -97,6 +97,7 @@ public:
if (!first) { if (!first) {
stream << ", "; stream << ", ";
} else { } else {
// cppcheck-suppress unreadVariable
first = false; first = false;
} }
if (param.first == "name") { if (param.first == "name") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment