aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-21 10:17:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-21 10:17:41 +0200
commit5611b3b917943bb5b445137f70984cc073fbb2eb (patch)
treecac71d6d1b9e10aa89849237a8a8d42d08334e82
parentb76346651a0e27e8824af4bb59224792df8dd4d0 (diff)
Work around bogus -Wrestrict in GCC 12 (GCC bug #105329)
-rw-r--r--bdep/deinit.cxx2
-rw-r--r--bdep/release.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/bdep/deinit.cxx b/bdep/deinit.cxx
index 777e162..45fab57 100644
--- a/bdep/deinit.cxx
+++ b/bdep/deinit.cxx
@@ -72,7 +72,7 @@ namespace bdep
run_b (o,
"--no-external-modules",
"disfigure:",
- "'" + src.representation () + "'@'" + out.representation () +
+ '\'' + src.representation () + "'@'" + out.representation () +
"',forward");
}
}
diff --git a/bdep/release.cxx b/bdep/release.cxx
index af2f012..4d499a0 100644
--- a/bdep/release.cxx
+++ b/bdep/release.cxx
@@ -117,7 +117,7 @@ namespace bdep
auto vtag = [] (const standard_version& v, bool inc_rev)
{
- return "v" + v.string_project (inc_rev);
+ return 'v' + v.string_project (inc_rev);
};
if (cv.revision == 0) // Tagging a release.