Revert "http: silence bogus gcc 13+ warning"

This reverts commit f7c282003c.
This commit is contained in:
Viktor Szakats 2025-07-26 00:57:04 +02:00
parent c03c4de13c
commit e9ca79e559
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -4370,17 +4370,7 @@ CURLcode Curl_http_req_make(struct httpreq **preq,
req = calloc(1, sizeof(*req) + m_len);
if(!req)
goto out;
#if defined(__GNUC__) && __GNUC__ >= 13
#pragma GCC diagnostic push
/* error: 'memcpy' offset [137, 142] from the object at 'req' is out of
the bounds of referenced subobject 'method' with type 'char[1]' at
offset 136 */
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
memcpy(req->method, method, m_len);
#if defined(__GNUC__) && __GNUC__ >= 13
#pragma GCC diagnostic pop
#endif
if(scheme) {
req->scheme = Curl_memdup0(scheme, s_len);
if(!req->scheme)