summaryrefslogtreecommitdiff
path: root/src/blitter/32bpp_anim_sse4.cpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2014-01-03 18:43:10 +0000
committerplanetmaker <planetmaker@openttd.org>2014-01-03 18:43:10 +0000
commit7b20da8a0aaad464e4b16942ef53140b44c92183 (patch)
tree8ea4178cf0a385564962bf6cfd429a0b8d451bfa /src/blitter/32bpp_anim_sse4.cpp
parent115c712f4ea2ee09c90ee3c0f04f4bfd70d00944 (diff)
downloadopenttd-7b20da8a0aaad464e4b16942ef53140b44c92183.tar.xz
(svn r26223) -Codechange: Silence some compile warnings about unititialized variables in the SSE blitters (MJP)
Diffstat (limited to 'src/blitter/32bpp_anim_sse4.cpp')
-rw-r--r--src/blitter/32bpp_anim_sse4.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/blitter/32bpp_anim_sse4.cpp b/src/blitter/32bpp_anim_sse4.cpp
index 27defd6de..a200d8d8c 100644
--- a/src/blitter/32bpp_anim_sse4.cpp
+++ b/src/blitter/32bpp_anim_sse4.cpp
@@ -19,10 +19,6 @@
/** Instantiation of the SSE4 32bpp blitter factory. */
static FBlitter_32bppSSE4_Anim iFBlitter_32bppSSE4_Anim;
-#if defined(__GNUC__)
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wunused-variable"
-#endif
/**
* Draws a sprite to a (screen) buffer. It is templated to allow faster operation.
*
@@ -30,6 +26,7 @@ static FBlitter_32bppSSE4_Anim iFBlitter_32bppSSE4_Anim;
* @param bp further blitting parameters
* @param zoom zoom level at which we are drawing
*/
+IGNORE_UNINITIALIZED_WARNING_START
template <BlitterMode mode, Blitter_32bppSSE2::ReadMode read_mode, Blitter_32bppSSE2::BlockType bt_last>
inline void Blitter_32bppSSE4_Anim::Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom)
{
@@ -356,9 +353,7 @@ bmcr_alpha_blend_single:
anim_line += this->anim_buf_width;
}
}
-#if defined(__GNUC__)
- #pragma GCC diagnostic pop
-#endif
+IGNORE_UNINITIALIZED_WARNING_STOP
/**
* Draws a sprite to a (screen) buffer. Calls adequate templated function.