From 967d8fcc476c5754bcc365dc6a64e6023f0b8af1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Aug 2022 15:03:03 +0200 Subject: Work around bogus -Wrestrict warning in MinGW GCC 12 --- libbutl/filesystem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx index 0a3d260..acf2e09 100644 --- a/libbutl/filesystem.cxx +++ b/libbutl/filesystem.cxx @@ -626,7 +626,7 @@ namespace butl string d; if (path::traits_type::root (p)) { - d = p; + d = string (p); // GCC bug #105329. d += path::traits_type::directory_separator; p = d.c_str (); } -- cgit v1.1