CMakeLists: Enable /W4 on MSVC

This commit is contained in:
MerryMage
2016-12-15 20:51:42 +00:00
parent 63caed7b09
commit 91e851a991
8 changed files with 15 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ using HostLocList = std::initializer_list<HostLoc>;
// 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,
@@ -71,6 +72,7 @@ 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,

View File

@@ -24,6 +24,7 @@ struct JitState {
std::array<u32, 16> Reg{}; // Current register file.
// TODO: Mode-specific register sets unimplemented.
#pragma warning (suppress : 4324) // Structure was padded due to alignment specifier
alignas(u64) std::array<u32, 64> ExtReg{}; // Extension registers.
std::array<u64, SpillCount> Spill{}; // Spill.