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-build.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpkg/pkg-build.cxx') diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx index 58bb793..78ed73d 100644 --- a/bpkg/pkg-build.cxx +++ b/bpkg/pkg-build.cxx @@ -131,7 +131,7 @@ namespace bpkg try { - return version_constraint ("~" + vs); + return version_constraint ('~' + vs); } // Note that the only possible reason for invalid_argument exception to // be thrown is that minor version reached the 99999 limit (see @@ -3534,7 +3534,7 @@ namespace bpkg l5 ([&]{trace << "collection failed due to " << e.description << (e.package != nullptr - ? " (" + e.package->string () + ")" + ? " (" + e.package->string () + ')' : empty_string) << ", retry from scratch";}); -- cgit v1.1