aboutsummaryrefslogtreecommitdiff
path: root/libbrep/package.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:32:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:32:08 +0200
commit5bf2dd09110f257acc730eab71301e1dede1c710 (patch)
tree291da1bd5a9aac4cdb50efe0c4884bebf75e4d82 /libbrep/package.cxx
parent758b66cf9ce32c44b37cd7e2c65b71d89c0240bf (diff)
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'libbrep/package.cxx')
-rw-r--r--libbrep/package.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/libbrep/package.cxx b/libbrep/package.cxx
index 65fa1ba..5f99fbb 100644
--- a/libbrep/package.cxx
+++ b/libbrep/package.cxx
@@ -161,11 +161,11 @@ namespace brep
// Probably drop-box would be better as also tells what are
// the available internal repositories.
//
- string k (project.string () + " " + name.string () + " " +
- version.string () + " " + version.string (true));
+ string k (project.string () + ' ' + name.string () + ' ' +
+ version.string () + ' ' + version.string (true));
if (upstream_version)
- k += " " + *upstream_version;
+ k += ' ' + *upstream_version;
// Add licenses to search keywords.
//
@@ -173,13 +173,13 @@ namespace brep
{
for (const auto& l: la)
{
- k += " " + l;
+ k += ' ' + l;
// If license is say LGPLv2 then LGPL is also a search keyword.
//
size_t n (l.size ());
if (n > 2 && l[n - 2] == 'v' && l[n - 1] >= '0' && l[n - 1] <= '9')
- k += " " + string (l, 0, n - 2);
+ k += ' ' + string (l, 0, n - 2);
}
}
@@ -190,12 +190,12 @@ namespace brep
// Add topics to the second-strongest search keywords.
//
for (const auto& t: topics)
- k2 += " " + t;
+ k2 += ' ' + t;
// Add keywords to the second-strongest search keywords.
//
for (const auto& k: keywords)
- k2 += " " + k;
+ k2 += ' ' + k;
return {move (k), move (k2), description ? *description : "", changes};
}