Skip to content

Commit

Permalink
try a different syntax for disabling warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent afa4fa6 commit 0e1504f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/SharedCodeAllocator.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ TEST_CASE("NativeModuleRefRefcounting")

// NativeModuleRef self move assignment:
{
#pragma warning(push, 0)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wself-move"
NativeModuleRef modRef1{modRefA};
modRef1 = std::move(modRef1);
REQUIRE(modRef1.get() == modRefA.get());
REQUIRE(modRefA->getRefcount() == 2);
#pragma warning(pop)
#pragma GCC diagnostic pop
}

REQUIRE(modRefA->getRefcount() == 1);
Expand Down

0 comments on commit 0e1504f

Please sign in to comment.