[ scummvm-Bugs-3492136 ] MOHAWK: Global constructors degrades portability

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


Bugs item #3492136, 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=3492136&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: MOHAWK: Global constructors degrades portability

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

    C++      engines/mohawk/livingbooks_code.o
../../engines/mohawk/livingbooks_code.cpp:792:17: error: declaration requires a global constructor
      [-Werror,-Wglobal-constructors]
CodeCommandInfo generalCommandInfo[NUM_GENERAL_COMMANDS] = {
                ^                                          ~
../../engines/mohawk/livingbooks_code.cpp:1338:17: error: declaration requires a global constructor
      [-Werror,-Wglobal-constructors]
CodeCommandInfo itemCommandInfo[NUM_ITEM_COMMANDS] = {
                ^                                    ~
2 errors generated.
make: *** [engines/mohawk/livingbooks_code.o] Error 1


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

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




More information about the Scummvm-tracker mailing list