From 0e8b626d876c258af1404c24f19f0cfbefb6db4d Mon Sep 17 00:00:00 2001 From: MerryMage Date: Thu, 15 Dec 2016 21:06:46 +0000 Subject: [PATCH] CMakeLists: Globally disable MSVC warning C4592 C4592: Symbol will be dynamically initialized (implementation limitation) --- CMakeLists.txt | 1 + src/backend_x64/hostloc.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75ada748..06abdff3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ if (MSVC) /w34458 # Declaration of 'var' hides class member /w34459 # Declaration of 'var' hides global definition /w34946 # Reinterpret-cast between related types + /wd4592 # Symbol will be dynamically initialized (implementation limitation) /MP /Zi /Zo diff --git a/src/backend_x64/hostloc.h b/src/backend_x64/hostloc.h index d29c73a7..97e09f52 100644 --- a/src/backend_x64/hostloc.h +++ b/src/backend_x64/hostloc.h @@ -54,7 +54,6 @@ using HostLocList = std::initializer_list; // RSP is preserved for function calls // R15 contains the JitState pointer -#pragma warning (suppress : 4592) // Symbol will be dynamically initialized (implementation limitation) const HostLocList any_gpr = { HostLoc::RAX, HostLoc::RBX, @@ -72,7 +71,6 @@ const HostLocList any_gpr = { HostLoc::R14, }; -#pragma warning (suppress : 4592) // Symbol will be dynamically initialized (implementation limitation) const HostLocList any_xmm = { HostLoc::XMM0, HostLoc::XMM1,