Skip to content

Commit

Permalink
[test] maybe unused assert variable in release
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Jan 18, 2025
1 parent 4693187 commit 31ce4b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/utility_identity_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace {
//! @test Verifies the 1x1 identity matrix deduced default value is a unit
//! double.
[[maybe_unused]] auto test{[] {
auto i{identity<>};
[[maybe_unused]] auto i{identity<>};

assert(i == 1.0);
static_assert(std::is_same_v<decltype(i), double>);
Expand Down
2 changes: 1 addition & 1 deletion test/utility_zero_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace fcarouge::test {
namespace {
//! @test Verifies the 1x1 zero matrix deduced default value is a null double.
[[maybe_unused]] auto test{[] {
auto z{zero<>};
[[maybe_unused]] auto z{zero<>};

assert(z == 0.0);
static_assert(std::is_same_v<decltype(z), double>);
Expand Down

0 comments on commit 31ce4b4

Please sign in to comment.