We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6776ca3 commit c07c8aaCopy full SHA for c07c8aa
src/datadog/http_client.cpp
@@ -75,7 +75,14 @@ Expected<HTTPClient::URL> HTTPClient::URL::parse(StringView input) {
75
std::string query;
76
if (after_authority != StringView::npos) {
77
StringView path_and_query = authority_and_path.substr(after_authority);
78
+#if defined(__GNUC__) && !defined(__clang__)
79
+#pragma GCC diagnostic push
80
+#pragma GCC diagnostic ignored "-Wstringop-overread"
81
+#endif
82
const auto query_pos = path_and_query.find('?');
83
84
+#pragma GCC diagnostic pop
85
86
if (query_pos != StringView::npos) {
87
path = std::string(path_and_query.substr(0, query_pos));
88
query = std::string(path_and_query.substr(query_pos + 1));
0 commit comments