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/testCellBuffer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/testCellBuffer.cxx') diff --git a/test/unit/testCellBuffer.cxx b/test/unit/testCellBuffer.cxx index 5e5b0b138..b6e03d2ee 100644 --- a/test/unit/testCellBuffer.cxx +++ b/test/unit/testCellBuffer.cxx @@ -1405,7 +1405,7 @@ TEST_CASE("CellBufferLong") { SECTION("Random") { RandomSequence rseq; - for (size_t i = 0l; i < 20000; i++) { + for (size_t i = 0; i < 20000; i++) { const int r = rseq.Next() % 10; if (r <= 2) { // 30% // Insert text -- cgit v1.2.3