From 38f9e824fb9402dd018246fbb02f095100b0298b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2022 10:17:21 +0200 Subject: Work around bogus -Wrestrict in GCC 12 (GCC bug #105329) --- bpkg/cfg-create.cxx | 2 +- bpkg/pkg-status.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx index c31b197..86ce5da 100644 --- a/bpkg/cfg-create.cxx +++ b/bpkg/cfg-create.cxx @@ -122,7 +122,7 @@ namespace bpkg { // Assemble the build2 create meta-operation parameters. // - string params ("'" + c.representation () + "'"); + string params ('\'' + c.representation () + '\''); if (!mods.empty ()) { params += ','; diff --git a/bpkg/pkg-status.cxx b/bpkg/pkg-status.cxx index 46abbea..45ea519 100644 --- a/bpkg/pkg-status.cxx +++ b/bpkg/pkg-status.cxx @@ -117,7 +117,7 @@ namespace bpkg // the user did specify the version. // if (o.system ()) - r.system_package_version = "?"; + r.system_package_version = '?'; // Get rid of stubs. // -- cgit v1.1