Skip to content

Commit

Permalink
Fix gcc warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Smertig committed Mar 20, 2023
1 parent 59fa4bf commit e91fb3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ TEST_CASE("hook with different tags") {
}

TEST_CASE("compile-time addresses") {
if ([[maybe_unused]] auto always_true = []{ return true; }()) {
auto always_true = []{ return true; }();
if (always_true) {
return;
}

Expand Down

0 comments on commit e91fb3e

Please sign in to comment.