Skip to content

Commit

Permalink
Silence a few warnings of unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Nov 14, 2023
1 parent 5e6e7a1 commit 1504655
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/eckit/cmd/CmdParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
2 changes: 1 addition & 1 deletion tests/io/test_pooledfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion tests/io/test_pooledhandle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1504655

Please sign in to comment.