Fix compile warning in clang

Clang is warning that the field is unused when SDL2 is enabled. This
fixes the warning by removing the field when the game is compiled with
SDL2.
This commit is contained in:
Andreas Löf 2015-09-25 02:02:48 +12:00
parent 1d7e52c387
commit 54d9965950
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@
#include <cmath>
// Includes for bug #17573
#if defined(__GLIBC__)
#if defined(__GLIBC__) && !SDL_VERSION_ATLEAST(2,0,0)
#include <gnu/libc-version.h>
#include <cstdio>
#endif
@ -225,7 +225,7 @@ display::display(const display_context * dc, CVideo& video, boost::weak_ptr<wb::
, update_panel_image_(true),
panel_image_()
#endif
#if defined(__GLIBC__)
#if defined(__GLIBC__) && !SDL_VERSION_ATLEAST(2,0,0)
, do_reverse_memcpy_workaround_(false)
#endif
{

View file

@ -1164,7 +1164,7 @@ private:
sdl::timage panel_image_;
#endif
#if defined(__GLIBC__)
#if defined(__GLIBC__) && !SDL_VERSION_ATLEAST(2,0,0)
/** Flag for bug #17573 - this is set in the constructor **/
bool do_reverse_memcpy_workaround_;
#endif