ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: Rules - Search - Register - Login curved edge
Folder Forum Index > Help and Support > Compiler warnings
Compiler warnings
  Author    Thread Reply to topic
ScummVM Porter

Joined: 25 Oct 2005
Posts: 993
Location: A haunted Castle somewhere in the Bavarian Mountains
Compiler warnings 

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


    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?
 Reply with quote  
Post Wed Aug 15, 2018 11:46 am 
 View user's profile Send private message Visit poster's website
  Display posts from previous:      
Reply to topic

Forum Jump:

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge