diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-21 10:16:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-04-21 10:16:53 +0200 |
commit | 7bbbe76637ae5b9733c608c596f1468dd5e27a06 (patch) | |
tree | 27f462311b222f926aad2efd08357944b66adc0e /libbuild2/utility.cxx | |
parent | d882a627e0c1c90f49a2a1f69273aafc5ebfb520 (diff) |
Work around bogus -Wrestrict in GCC 12 (GCC bug #105329)
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r-- | libbuild2/utility.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/utility.cxx b/libbuild2/utility.cxx index 31be3aa..3eeeeaa 100644 --- a/libbuild2/utility.cxx +++ b/libbuild2/utility.cxx @@ -131,13 +131,13 @@ namespace build2 if (p.absolute ()) { if (p == b) - return cur ? "." + p.separator_string () : string (); + return cur ? '.' + p.separator_string () : string (); #ifndef _WIN32 if (!home.empty ()) { if (p == home) - return "~" + p.separator_string (); + return '~' + p.separator_string (); } #endif |