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:
parent
1d7e52c387
commit
54d9965950
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue