Tests: fix compiler warning about unused parameters

This commit is contained in:
wmayer
2024-03-06 08:14:43 +01:00
committed by wwmayer
parent a782d6f1bc
commit 12389fc549
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include "gtest/gtest.h"
#include <array>
#include <boost/core/ignore_unused.hpp>
#include <App/Application.h>
#include <App/ComplexGeoData.h>
@@ -480,6 +481,9 @@ TEST_F(ComplexGeoDataTest, traceElement)
// Arrange
Data::TraceCallback cb =
[name](const Data::MappedName& elementname, int offset, long encodedTag, long tag) {
boost::ignore_unused(offset);
boost::ignore_unused(encodedTag);
boost::ignore_unused(tag);
EXPECT_STREQ(elementname.toString().c_str(), name.substr(1).c_str());
return false;
};