From 77d00274b4e729ba5eac3cda390d6aa9478567ca Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 30 Jan 2024 10:11:10 +1100 Subject: Avoid warnings in unit tests with const, nullptr, [[nodiscard]], initialisation, and unnamed namespace. --- test/unit/testPartitioning.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/unit/testPartitioning.cxx') diff --git a/test/unit/testPartitioning.cxx b/test/unit/testPartitioning.cxx index 4ba470c82..5505715af 100644 --- a/test/unit/testPartitioning.cxx +++ b/test/unit/testPartitioning.cxx @@ -34,13 +34,13 @@ TEST_CASE("CompileCopying Partitioning") { Partitioning s2; // Copy constructor - Partitioning sa(s); + const Partitioning sa(s); // Copy assignment Partitioning sb; sb = s; // Move constructor - Partitioning sc(std::move(s)); + const Partitioning sc(std::move(s)); // Move assignment Partitioning sd; sd = (std::move(s2)); -- cgit v1.2.3