From c67a70cb09083e24e29c9e52ea2358ecae15017c Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 29 Jul 2017 13:40:03 +0200 Subject: [PATCH] compile fixes --- src/LinearMath/btConvexHullComputer.cpp | 15 ++++++++++++++- src/LinearMath/btThreads.h | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/LinearMath/btConvexHullComputer.cpp b/src/LinearMath/btConvexHullComputer.cpp index d58ac955f..c49675daa 100644 --- a/src/LinearMath/btConvexHullComputer.cpp +++ b/src/LinearMath/btConvexHullComputer.cpp @@ -1278,7 +1278,20 @@ void btConvexHullInternal::computeInternal(int start, int end, IntermediateHull& return; } } - // lint -fallthrough + { + Vertex* v = originalVertices[start]; + v->edges = NULL; + v->next = v; + v->prev = v; + + result.minXy = v; + result.maxXy = v; + result.minYx = v; + result.maxYx = v; + } + + return; + } case 1: { Vertex* v = originalVertices[start]; diff --git a/src/LinearMath/btThreads.h b/src/LinearMath/btThreads.h index 781e9b1f5..05fd15ec8 100644 --- a/src/LinearMath/btThreads.h +++ b/src/LinearMath/btThreads.h @@ -98,6 +98,7 @@ SIMD_FORCE_INLINE bool btMutexTryLock( btSpinMutex* mutex ) class btIParallelForBody { public: + virtual ~btIParallelForBody() {} virtual void forLoop( int iBegin, int iEnd ) const = 0; };