From 1504655da0b6daf5b3dc9762a67609e9428d19f8 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Tue, 14 Nov 2023 12:01:35 +0100 Subject: [PATCH] Silence a few warnings of unused variables --- src/eckit/cmd/CmdParser.cc | 2 +- tests/io/test_pooledfile.cc | 2 +- tests/io/test_pooledhandle.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eckit/cmd/CmdParser.cc b/src/eckit/cmd/CmdParser.cc index f8782337a..690efba59 100644 --- a/src/eckit/cmd/CmdParser.cc +++ b/src/eckit/cmd/CmdParser.cc @@ -227,7 +227,7 @@ void CmdParser::historize() { //---------------------------------------------------------------------------------------------------------------------- void CmdParser::shell(const std::string& s) { - int ret = 0; + [[maybe_unused]] int ret = 0; if (not s.empty()) { ret = ::system(s.c_str()); } diff --git a/tests/io/test_pooledfile.cc b/tests/io/test_pooledfile.cc index 850c2155f..c415c5491 100644 --- a/tests/io/test_pooledfile.cc +++ b/tests/io/test_pooledfile.cc @@ -127,7 +127,7 @@ CASE("From one PooledFile") { } // read interlaced from N pooled files - size_t p = 0; + [[maybe_unused]] size_t p = 0; for (size_t i = 0; i < M; ++i) { for (size_t j = 0; j < N; ++j) { char b[2]; diff --git a/tests/io/test_pooledhandle.cc b/tests/io/test_pooledhandle.cc index f2460fb81..2e7086601 100644 --- a/tests/io/test_pooledhandle.cc +++ b/tests/io/test_pooledhandle.cc @@ -123,7 +123,7 @@ CASE("From one PooledHandle") { } // read interlaced from N pooled files - size_t p = 0; + [[maybe_unused]] size_t p = 0; for (size_t i = 0; i < M; ++i) { for (size_t j = 0; j < N; ++j) { char b[2];