Source: simutrans
Severity: minor
Tags: patch
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang 
(instead of gcc).
See build logs here: 
http://clang.debian.net/logs/2014-01-14/simutrans_111.2.2-1_unstable_clang.log

Thanks,
Alexander


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- simutrans-111.2.2/simtypes.h	2014-06-01 15:22:18.000000000 -0400
+++ simutrans-111.2.2-my/simtypes.h	2014-06-01 15:19:12.555720091 -0400
@@ -11,6 +11,8 @@
 #include "utils/for.h"
 
 #include <endian.h>
+#include <alloca.h>
+
 #undef LITTLE_ENDIAN //endian.h gives these definitions we don't want
 #undef BIG_ENDIAN
 #if __BYTE_ORDER == __BIG_ENDIAN
@@ -27,7 +29,8 @@
 #
 # define inline _inline
 #else
-#	define ALLOCA(type, name, count) type name[count]
+#	define ALLOCA(type, name, count) type* name = static_cast<type*>(alloca(sizeof(type) * (count)))
+//#	define ALLOCA(type, name, count) type name[count]
 #endif
 
 #if defined DEBUG

Reply via email to