Skip to content

Commit

Permalink
Tests: fix compiler warning about unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 6, 2024
1 parent 0d37ea2 commit 2e96599
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/App/ComplexGeoData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "gtest/gtest.h"

#include <array>
#include <boost/core/ignore_unused.hpp>

#include <App/Application.h>
#include <App/ComplexGeoData.h>
Expand Down Expand Up @@ -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;
};
Expand Down
3 changes: 3 additions & 0 deletions tests/src/Mod/Part/App/TopoShapeExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "PartTestHelpers.h"

#include <boost/core/ignore_unused.hpp>
#include <BRepAdaptor_CompCurve.hxx>
#include <BRepAdaptor_Surface.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e96599

Please sign in to comment.