aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-21 10:16:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-21 10:16:53 +0200
commit7bbbe76637ae5b9733c608c596f1468dd5e27a06 (patch)
tree27f462311b222f926aad2efd08357944b66adc0e /libbuild2/utility.cxx
parentd882a627e0c1c90f49a2a1f69273aafc5ebfb520 (diff)
Work around bogus -Wrestrict in GCC 12 (GCC bug #105329)
Diffstat (limited to 'libbuild2/utility.cxx')
-rw-r--r--libbuild2/utility.cxx4
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