From e9ca79e55930a577361b0b9d8ff8592421c7e66c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 26 Jul 2025 00:57:04 +0200 Subject: [PATCH] Revert "http: silence bogus gcc 13+ warning" This reverts commit f7c282003cf599f64fe0f55090ce2708e984c775. --- lib/http.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/http.c b/lib/http.c index 71a4857249..890b0fb5a1 100644 --- a/lib/http.c +++ b/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)