aboutsummaryrefslogtreecommitdiff
path: root/bdep/http-service.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:12:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:12:13 +0200
commita9aad52ac7134edd89869529e7df3b1e6316c10b (patch)
tree3e58eed8273284502000a45a6395b998b13116b2 /bdep/http-service.cxx
parent05e04dfc3950624c72bad7fc14000669a9d86e3c (diff)
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'bdep/http-service.cxx')
-rw-r--r--bdep/http-service.cxx8
1 files changed, 4 insertions, 4 deletions
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)