mirror of
https://github.com/curl/curl.git
synced 2026-07-28 09:43:06 +03:00
Revert "http: silence bogus gcc 13+ warning"
This reverts commit f7c282003c.
This commit is contained in:
parent
c03c4de13c
commit
e9ca79e559
1 changed files with 0 additions and 10 deletions
10
lib/http.c
10
lib/http.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue