Skip to content

Commit

Permalink
Fix unused variable warning due to use of wrong Boost assertion macro
Browse files Browse the repository at this point in the history
```
<ArborX>/test/tstIndexableGetter.cpp:99:15: warning: unused variable 'scene_bounding_box' [-Wunused-variable]
  ArborX::Box scene_bounding_box = ArborX::Box{{-1, -1, -1}, {1, 1, 1}};
              ^
1 warning generated.
```
  • Loading branch information
dalg24 committed Apr 5, 2024
1 parent 27c8bf4 commit 1481f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tstIndexableGetter.cpp
Expand Up @@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(indexables, DeviceType, ARBORX_DEVICE_TYPES)

ArborX::Box box;
calculateBoundingBoxOfTheScene(ExecutionSpace{}, indexables, box);
BOOST_ASSERT(equals(box, scene_bounding_box));
BOOST_TEST(equals(box, scene_bounding_box));
}

{
Expand All @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(indexables, DeviceType, ARBORX_DEVICE_TYPES)

ArborX::Box box;
calculateBoundingBoxOfTheScene(ExecutionSpace{}, indexables, box);
BOOST_ASSERT(equals(box, scene_bounding_box));
BOOST_TEST(equals(box, scene_bounding_box));
}
}

Expand Down

0 comments on commit 1481f5f

Please sign in to comment.