Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 13:11:21 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332479 - head/devel/bullet/files
Message-ID:  <201311021311.rA2DBLYt081845@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Nov  2 13:11:21 2013
New Revision: 332479
URL: http://svnweb.freebsd.org/changeset/ports/332479

Log:
  devel/bullets: Fix C++ errors seen on some versions of gcc
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h   (contents, props changed)

Added: head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/bullet/files/patch-src_BulletSoftBody_btSoftBodyInternals.h	Sat Nov  2 13:11:21 2013	(r332479)
@@ -0,0 +1,20 @@
+--- src/BulletSoftBody/btSoftBodyInternals.h.orig	2009-08-31 04:35:06.000000000 +0000
++++ src/BulletSoftBody/btSoftBodyInternals.h
+@@ -25,6 +25,7 @@ subject to the following restrictions:
+ #include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"
+ #include "BulletCollision/CollisionShapes/btConvexInternalShape.h"
+ #include "BulletCollision/NarrowPhaseCollision/btGjkEpa2.h"
++#include <string.h>
+ 
+ //
+ // btSymMatrix
+@@ -172,8 +173,7 @@ public:
+ template <typename T>
+ static inline void			ZeroInitialize(T& value)
+ {
+-	static const T	zerodummy;
+-	value=zerodummy;
++	memset(&value, 0, sizeof(T));
+ }
+ //
+ template <typename T>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311021311.rA2DBLYt081845>