Compiler warnings

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
Raziel
ScummVM Porter
Posts: 1012
Joined: Tue Oct 25, 2005 8:27 am
Location: A haunted Castle somewhere in the Bavarian Mountains
Contact:

Compiler warnings

Post by Raziel » Wed Aug 15, 2018 11:46 am

I recently switched to gcc 8.1 and now a whole lot of these warnings pop up

Code: Select all

    C++      engines/scumm/actor.o
engines/scumm/actor.cpp: In member function 'virtual void Scumm::Actor::initActor(int)':
engines/scumm/actor.cpp:162:46: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Scumm::Actor::ActorWalkData'; use assignment or value-initialization instead [-Wclass-memaccess]
   memset(&_walkdata, 0, sizeof(ActorWalkData));
                                              ^
In file included from engines/scumm/actor.cpp:25:
./engines/scumm/actor.h:141:9: note: 'struct Scumm::Actor::ActorWalkData' declared here
  struct ActorWalkData {
         ^~~~~~~~~~~~~
all over the place in nearly every engine...should i worry?
(Anything that has to do with mem worries me, my platform is rather shaky when it comes to mem)

If needed i can gather and put them into a bug item?

Post Reply