[ scummvm-Bugs-3492137 ] GROOVIE: Global constructors degrades portability

SourceForge.net noreply at sourceforge.net
Thu Feb 23 16:45:45 CET 2012


Bugs item #3492137, was opened at 2012-02-23 07:45
Message generated for change (Tracker Item Submitted) made by fingolfin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3492137&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Max Horn (fingolfin)
Assigned to: Nobody/Anonymous (nobody)
Summary: GROOVIE: Global constructors degrades portability

Initial Comment:
The GROOVIE engine makes use of global constructors, which reduces portability. Here's the relevant error / warning from clang.

    C++      engines/groovie/script.o
../../engines/groovie/script.cpp:1681:28: error: declaration requires a global constructor
      [-Werror,-Wglobal-constructors]
Script::OpcodeFunc Script::_opcodesT7G[NUM_OPCODES] = {
                           ^                          ~
../../engines/groovie/script.cpp:1777:28: error: declaration requires a global constructor
      [-Werror,-Wglobal-constructors]
Script::OpcodeFunc Script::_opcodesV2[NUM_OPCODES] = {
                           ^                         ~
2 errors generated.
make: *** [engines/groovie/script.o] Error 1



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3492137&group_id=37116




More information about the Scummvm-tracker mailing list