From a599c29d9e16c0bbba4ee4e6dbac7f1c1d588f4b Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 6 Feb 2021 22:31:49 +0000 Subject: [PATCH] testenv: Ignore warning C4309 --- tests/A32/testenv.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/A32/testenv.h b/tests/A32/testenv.h index 95780222..1ff0066c 100644 --- a/tests/A32/testenv.h +++ b/tests/A32/testenv.h @@ -23,7 +23,14 @@ public: using RegisterArray = std::array; using ExtRegsArray = std::array; +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable:4309) // C4309: 'static_cast': truncation of constant value +#endif static constexpr InstructionType infinite_loop = static_cast(infinite_loop_u32); +#ifdef _MSC_VER +#pragma warning(pop) +#endif u64 ticks_left = 0; bool code_mem_modified_by_guest = false;