Allow compilation on gcc/clang without -Wno-unknown-pragmas.

This commit is contained in:
Nicholas Hastings committed 2013-10-06 13:46:15 -04:00
1 parent 34d4b05185
commit 9889382863
67 files changed
+218 -17

No files matched your search

+4
View File
@@ -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 )
{