[MacPorts] #36776: simutrans: variable length array of non-POD element type 'ware_t'

MacPorts noreply at macports.org
Sun Oct 28 15:28:37 PDT 2012


#36776: simutrans: variable length array of non-POD element type 'ware_t'
-------------------------+--------------------------
  Reporter:  hal_1984@…  |      Owner:  ryandesign@…
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.1.2
Resolution:              |   Keywords:  clang
      Port:  simutrans   |
-------------------------+--------------------------

Comment (by ryandesign@…):

 [http://forum.simutrans.com/index.php?topic=10477 simutrans'
 incompatibility with clang] is discussed in their forum. There's a patch
 there which goes like this:

 {{{
 --- simutrans-original/simtypes.h       2012-09-09 13:35:26.000000000
 +0700
 +++ simutrans-patched/simtypes.h        2012-09-12 19:40:08.604767906
 +0700
 @@ -17,6 +17,9 @@
  #      define ALLOCA(type, name, count) type* name =
 static_cast<type*>(alloca(sizeof(type) * (count)))
  #
  # define inline _inline
 +#elif defined __clang__
 +#      include <alloca.h>
 +#      define ALLOCA(type, name, count) type* name =
 static_cast<type*>(alloca(sizeof(type) * (count)))
  #else
  #      define ALLOCA(type, name, count) type name[count]
  #endif
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36776#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list