aboutsummaryrefslogtreecommitdiff
path: root/tests/standard-version
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-27 15:52:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-27 16:06:26 +0200
commitbc6050a7b42581f0d4fbbe3f4b38b7ed02239d72 (patch)
treeafa63befc8013387c8eabee22f53092330be82b3 /tests/standard-version
parent95ee62c4079e68d9b2444b490cfb68c703023ab8 (diff)
Suppress bogus GCC 12 -Wrestrict warning
Diffstat (limited to 'tests/standard-version')
-rw-r--r--tests/standard-version/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx
index 29cad54..4bddf08 100644
--- a/tests/standard-version/driver.cxx
+++ b/tests/standard-version/driver.cxx
@@ -83,7 +83,7 @@ version (const string& s,
if (v.minor () != 99999)
{
- standard_version_constraint c1 ("~" + s);
+ standard_version_constraint c1 ('~' + s);
standard_version_constraint c2 ('[' + s + ' ' + max_ver ('~') + ')');
assert (c1 == c2);
}
@@ -91,7 +91,7 @@ version (const string& s,
if ((v.major () == 0 && v.minor () != 99999) ||
(v.major () != 0 && v.major () != 99999))
{
- standard_version_constraint c1 ("^" + s);
+ standard_version_constraint c1 ('^' + s);
standard_version_constraint c2 ('[' + s + ' ' + max_ver ('^') + ')');
assert (c1 == c2);
}