aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-27 15:57:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:07:03 +0200
commit6b9dbfaaf2b3dfdf3627b57c7f15c6a3cd105f35 (patch)
treebc9dae9de5b50a85dd05d2a64e13dc83c8121593 /libbuild2/variable.cxx
parent72e9ec3d7028765836851b515d80816f2da74060 (diff)
Suppress (potential) bogus GCC 12 -Wrestrict warnings
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index dabddca..0017633 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -451,11 +451,11 @@ namespace build2
m = "invalid " + t + " value ";
if (n.simple ())
- m += "'" + n.value + "'";
+ m += '\'' + n.value + '\'';
else if (n.directory ())
- m += "'" + n.dir.representation () + "'";
+ m += '\'' + n.dir.representation () + '\'';
else
- m += "name '" + to_string (n) + "'";
+ m += "name '" + to_string (n) + '\'';
}
throw invalid_argument (m);