From 2e965999034218b4dc6cf63a0f51e35966182046 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 6 Mar 2024 08:14:43 +0100 Subject: [PATCH] Tests: fix compiler warning about unused parameters --- tests/src/App/ComplexGeoData.cpp | 4 ++++ tests/src/Mod/Part/App/TopoShapeExpansion.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/tests/src/App/ComplexGeoData.cpp b/tests/src/App/ComplexGeoData.cpp index fe007957c7..3ffc72e133 100644 --- a/tests/src/App/ComplexGeoData.cpp +++ b/tests/src/App/ComplexGeoData.cpp @@ -3,6 +3,7 @@ #include "gtest/gtest.h" #include +#include #include #include @@ -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; }; diff --git a/tests/src/Mod/Part/App/TopoShapeExpansion.cpp b/tests/src/Mod/Part/App/TopoShapeExpansion.cpp index 298458357d..09d51b945e 100644 --- a/tests/src/Mod/Part/App/TopoShapeExpansion.cpp +++ b/tests/src/Mod/Part/App/TopoShapeExpansion.cpp @@ -8,6 +8,7 @@ #include "PartTestHelpers.h" +#include #include #include #include @@ -2576,6 +2577,8 @@ TEST_F(TopoShapeExpansionTest, traceElement) // Arrange Data::TraceCallback cb = [name](const Data::MappedName& elementname, int offset, long encodedTag, long tag) { + boost::ignore_unused(offset); + boost::ignore_unused(tag); // TODO: This is likely a flawed way to address testing a callback. // Also, it isn't clear exactly what the correct results are, although as soon as // we start addressing History, we will quickly discover that, and likely the right