diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index b254076165..aa2f01b662 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -94,7 +94,7 @@ #ifndef _SECURE_SCL #error Please define _SECURE_SCL=0 in the project settings #else - CompileTimeAssert<_SECURE_SCL==0> EnsureNoSecureSCL; + CompileTimeAssert<_SECURE_SCL==0> volatile EnsureNoSecureSCL; #endif } diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.h b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.h index 1d6d060c44..d69c7267f6 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.h +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.h @@ -130,7 +130,7 @@ union ZeldaUnkPB namespace { // If this miscompiles, adjust the size of ZeldaVoicePB to 0x180 bytes (0xc0 shorts). - CompileTimeAssert ensure_zpb_size_correct; + CompileTimeAssert volatile ensure_zpb_size_correct; } // namespace class CUCode_Zelda : public IUCode