Added comment for GCC 12.1 false-positive (issue #2100)

This commit is contained in:
Andrew King 2022-05-21 23:16:40 -04:00 committed by Lukas Dürrenberger
parent 6ff85eebe5
commit 3e424550d8

View File

@ -263,7 +263,7 @@ void Http::Response::parse(const std::string& data)
for (std::size_t i = 0; ((i < length) && (it != itEnd)); i++)
{
m_body.push_back(*it);
++it;
++it; // Iterate in separate expression to work around false positive -Wnull-dereference warning in GCC 12.1.0
}
}