aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-08-25 15:03:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-08-25 15:03:03 +0200
commit967d8fcc476c5754bcc365dc6a64e6023f0b8af1 (patch)
treee806da72a7f947df39d51f1b7f42ca04db2227e4
parent2d4ca2286c6e8b8935f1495e73985b7238ec6d1c (diff)
Work around bogus -Wrestrict warning in MinGW GCC 12
-rw-r--r--libbutl/filesystem.cxx2
1 files changed, 1 insertions, 1 deletions
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 ();
}