mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 06:00:12 +00:00
fix 'unused' warning. Fixes Issue 770
This commit is contained in:
parent
673e74146e
commit
886650a038
@ -284,6 +284,10 @@ static int btNanMask = 0x7F800001;
|
||||
#ifndef BT_INFINITY
|
||||
static int btInfinityMask = 0x7F800000;
|
||||
#define BT_INFINITY (*(float*)&btInfinityMask)
|
||||
inline int btGetInfinityMask()//suppress stupid compiler warning
|
||||
{
|
||||
return btInfinityMask;
|
||||
}
|
||||
#endif
|
||||
|
||||
//use this, in case there are clashes (such as xnamath.h)
|
||||
@ -336,6 +340,10 @@ inline __m128 operator * (const __m128 A, const __m128 B)
|
||||
#ifndef BT_INFINITY
|
||||
static int btInfinityMask = 0x7F800000;
|
||||
#define BT_INFINITY (*(float*)&btInfinityMask)
|
||||
inline int btGetInfinityMask()//suppress stupid compiler warning
|
||||
{
|
||||
return btInfinityMask;
|
||||
}
|
||||
#endif
|
||||
#endif//BT_USE_NEON
|
||||
|
||||
@ -728,4 +736,5 @@ template <typename T>T* btAlignPointer(T* unalignedPtr, size_t alignment)
|
||||
return converter.ptr;
|
||||
}
|
||||
|
||||
|
||||
#endif //BT_SCALAR_H
|
||||
|
Loading…
Reference in New Issue
Block a user