mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 01:58:00 +08:00
Allow compilation on gcc/clang without -Wno-unknown-pragmas.
This commit is contained in:
1 parent
34d4b05185
commit
9889382863
67 files changed
+218
-17
No files matched your search
@@ -106,8 +106,10 @@ ALIGN128 float power2_n[256] = // 2**(index - 128) / 255
|
||||
// You can use this to double check the exponent table and assert that
|
||||
// the precomputation is correct.
|
||||
#ifdef DBGFLAG_ASSERT
|
||||
#ifdef _WIN32
|
||||
#pragma warning(push)
|
||||
#pragma warning( disable : 4189 ) // disable unused local variable warning
|
||||
#endif
|
||||
static void CheckExponentTable()
|
||||
{
|
||||
for( int i = 0; i < 256; i++ )
|
||||
@@ -120,8 +122,10 @@ static void CheckExponentTable()
|
||||
power2_n[i] == testAgainst );
|
||||
}
|
||||
}
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void BuildGammaTable( float gamma, float texGamma, float brightness, int overbright )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user