From a9aad52ac7134edd89869529e7df3b1e6316c10b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Oct 2022 16:12:13 +0200 Subject: Suppress (potential) bogus GCC 12 -Wrestrict warnings --- bdep/http-service.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bdep/http-service.cxx') diff --git a/bdep/http-service.cxx b/bdep/http-service.cxx index c3ddc5c..68c2e4d 100644 --- a/bdep/http-service.cxx +++ b/bdep/http-service.cxx @@ -110,7 +110,7 @@ namespace bdep fos.emplace_back ( p.type == parameter::file ? p.name + "=@" + p.value : p.type == parameter::file_text ? p.name + "=@-" : - p.name + "=" + p.value); + p.name + '=' + p.value); } // Note that it's a bad idea to issue the diagnostics while curl is @@ -266,7 +266,7 @@ namespace bdep return http_status {c, move (r)}; } - bad_response ("invalid HTTP response status line '" + l + "'"); + bad_response ("invalid HTTP response status line '" + l + '\''); assert (false); // Can't be here. return http_status {}; @@ -394,7 +394,7 @@ namespace bdep uint16_t c (status_code (v)); if (c == 0) - bad_value ("invalid HTTP status '" + v + "'"); + bad_value ("invalid HTTP status '" + v + '\''); if (c != rs.code) bad_value ("status " + v + " doesn't match HTTP response " @@ -450,7 +450,7 @@ namespace bdep message = "HTTP status code " + to_string (rs.code); if (!rs.reason.empty ()) - message += " (" + lcase (rs.reason) + ")"; + message += " (" + lcase (rs.reason) + ')'; } if (!location) -- cgit v1.1