diff options
author | planetmaker <planetmaker@openttd.org> | 2014-01-03 18:43:10 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2014-01-03 18:43:10 +0000 |
commit | 7b20da8a0aaad464e4b16942ef53140b44c92183 (patch) | |
tree | 8ea4178cf0a385564962bf6cfd429a0b8d451bfa /src/blitter/32bpp_sse4.hpp | |
parent | 115c712f4ea2ee09c90ee3c0f04f4bfd70d00944 (diff) | |
download | openttd-7b20da8a0aaad464e4b16942ef53140b44c92183.tar.xz |
(svn r26223) -Codechange: Silence some compile warnings about unititialized variables in the SSE blitters (MJP)
Diffstat (limited to 'src/blitter/32bpp_sse4.hpp')
-rw-r--r-- | src/blitter/32bpp_sse4.hpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/blitter/32bpp_sse4.hpp b/src/blitter/32bpp_sse4.hpp index 6545c1692..f3a24fa1e 100644 --- a/src/blitter/32bpp_sse4.hpp +++ b/src/blitter/32bpp_sse4.hpp @@ -22,11 +22,7 @@ #undef INSR32 #define INSR32(val, into, rank) (*(um128i*) &into).m128i = _mm_insert_epi32((*(um128i*) &into).m128i, val, rank) -#if defined(__GNUC__) - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wuninitialized" - #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" -#endif +IGNORE_UNINITIALIZED_WARNING_START #ifdef _SQ64 #undef INSR64 #define INSR64(val, into, rank) (*(um128i*) &into).m128i = _mm_insert_epi64((*(um128i*) &into).m128i, val, rank) @@ -40,9 +36,7 @@ (*(um128i*) &into).m128i = _mm_insert_epi32((*(um128i*) &into).m128i, v.u32.high, (rank)*2 + 1); \ } #endif -#if defined(__GNUC__) - #pragma GCC diagnostic pop -#endif +IGNORE_UNINITIALIZED_WARNING_STOP /** The SSE4 32 bpp blitter (without palette animation). */ class Blitter_32bppSSE4 : public Blitter_32bppSSSE3 { |