Menu

#5988 DREAMWEB: Global constructors degrades portability

Dreamweb
closed-invalid
nobody
None
5
2012-05-07
2012-02-23
Max Horn
No

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

C++ engines/dreamweb/people.o
../../engines/dreamweb/people.cpp:27:31: error: declaration requires a global constructor
[-Werror,-Wglobal-constructors]
static void (DreamWebEngine::*reelCallbacks[57])(ReelRoutine &) = {
^ ~
1 error generated.
make: *** [engines/dreamweb/people.o] Error 1

Discussion

  • Johannes Schickel

    What clang version is that?

    Can't reproduce this with:
    clang version 3.1 (trunk 151291)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix

     
  • Max Horn

    Max Horn - 2012-02-25
    • status: open --> closed-invalid
     
  • Max Horn

    Max Horn - 2012-02-25

    This was with Apple clang version 3.0 (tags/Apple/clang-211.10.1). However, I cannot reproduce this with a current trunk build of clang either, so I am closing this as invalid. Sorry for the confusion!

     
  • digitall

    digitall - 2012-05-07
    • milestone: --> Dreamweb