summaryrefslogtreecommitdiff
path: root/src/blitter
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2018-05-13 18:34:57 +0100
committerfrosch <github@elsenhans.name>2018-06-27 22:54:46 +0200
commit5f86e1a390b4aa9510d43f97251484ca67934f1c (patch)
tree8a9a74e4beeefb3ebe5585f0f10aac80d2ba078a /src/blitter
parente1b9187e9b39ff2ce1982a8fbcb4f2a018662ce7 (diff)
downloadopenttd-5f86e1a390b4aa9510d43f97251484ca67934f1c.tar.xz
Codechange: Silence -Wclass-memaccess warnings with GCC8
Diffstat (limited to 'src/blitter')
-rw-r--r--src/blitter/32bpp_anim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/32bpp_anim.cpp b/src/blitter/32bpp_anim.cpp
index 578d85f18..98ae22b00 100644
--- a/src/blitter/32bpp_anim.cpp
+++ b/src/blitter/32bpp_anim.cpp
@@ -361,7 +361,7 @@ void Blitter_32bppAnim::CopyFromBuffer(void *video, const void *src, int width,
Colour *dst_pal = dst;
uint16 *anim_pal = anim_line;
- memcpy(dst, usrc, width * sizeof(uint32));
+ memcpy(static_cast<void *>(dst), usrc, width * sizeof(uint32));
usrc += width;
dst += _screen.pitch;
/* Copy back the anim-buffer */