From 5611b3b917943bb5b445137f70984cc073fbb2eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2022 10:17:41 +0200 Subject: Work around bogus -Wrestrict in GCC 12 (GCC bug #105329) --- bdep/deinit.cxx | 2 +- bdep/release.cxx | 2 +- 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. -- cgit v1.1