From 3e424550d88ebd04c0cc49daf7be78653a57a366 Mon Sep 17 00:00:00 2001 From: Andrew King Date: Sat, 21 May 2022 23:16:40 -0400 Subject: [PATCH] Added comment for GCC 12.1 false-positive (issue #2100) --- src/SFML/Network/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 0a88b2429..378967912 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -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 } }