Hack this dodgy compile-time assert so it works with gcc.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5486 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-05-26 20:47:56 +00:00
parent 3bf3c27d3e
commit 3edae70ea0
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -130,7 +130,7 @@ union ZeldaUnkPB
namespace {
// If this miscompiles, adjust the size of ZeldaVoicePB to 0x180 bytes (0xc0 shorts).
CompileTimeAssert<sizeof(ZeldaVoicePB) == 0x180> ensure_zpb_size_correct;
CompileTimeAssert<sizeof(ZeldaVoicePB) == 0x180> volatile ensure_zpb_size_correct;
} // namespace
class CUCode_Zelda : public IUCode