From ceaad6480139e3c68af2e3d2dbe78588fcdc034f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Oct 2022 16:25:42 +0200 Subject: Suppress (potential) bogus GCC 12 -Wrestrict warnings --- bpkg/pkg-configure.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-configure.cxx') diff --git a/bpkg/pkg-configure.cxx b/bpkg/pkg-configure.cxx index ae5aafd..20a2567 100644 --- a/bpkg/pkg-configure.cxx +++ b/bpkg/pkg-configure.cxx @@ -265,7 +265,7 @@ namespace bpkg // dir_path od (sp->effective_out_root (pdb.config)); vars.push_back ("config.import." + sp->name.variable () + - "='" + od.representation () + "'"); + "='" + od.representation () + '\''); } } } @@ -362,7 +362,7 @@ namespace bpkg dir_path out_root ( p->external () ? c / dir_path (p->name.string ()) - : c / dir_path (p->name.string () + "-" + p->version.string ())); + : c / dir_path (p->name.string () + '-' + p->version.string ())); l4 ([&]{trace << "src_root: " << src_root << ", " << "out_root: " << out_root;}); -- cgit v1.1