From afa4fa601e5298f732bc5a1f2690c20d8c7623ee Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 11 Oct 2024 12:04:28 -0700 Subject: [PATCH] try to disable self-move warning --- tests/SharedCodeAllocator.test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/SharedCodeAllocator.test.cpp b/tests/SharedCodeAllocator.test.cpp index bba8daad..0f30036d 100644 --- a/tests/SharedCodeAllocator.test.cpp +++ b/tests/SharedCodeAllocator.test.cpp @@ -177,10 +177,12 @@ TEST_CASE("NativeModuleRefRefcounting") // NativeModuleRef self move assignment: { +#pragma warning(push, 0) NativeModuleRef modRef1{modRefA}; modRef1 = std::move(modRef1); REQUIRE(modRef1.get() == modRefA.get()); REQUIRE(modRefA->getRefcount() == 2); +#pragma warning(pop) } REQUIRE(modRefA->getRefcount() == 1);