remove warnings

This commit is contained in:
Andrew Meadows 2015-01-15 10:36:17 -08:00
parent ff171a5782
commit 9eb4d66327
3 changed files with 4 additions and 9 deletions

View file

@ -32,4 +32,8 @@ inline btQuaternion glmToBullet(const glm::quat& g) {
return btQuaternion(g.x, g.y, g.z, g.w);
}
inline bool avoidUnusedVariableWarningInBulletHeaders(float number) {
return number == BT_INFINITY;
}
#endif // hifi_BulletUtil_h

View file

@ -14,14 +14,6 @@
#include "BulletUtil.h"
#include "ObjectMotionState.h"
const float MIN_DENSITY = 200.0f;
const float DEFAULT_DENSITY = 1000.0f;
const float MAX_DENSITY = 20000.0f;
const float MIN_VOLUME = 0.001f;
const float DEFAULT_VOLUME = 1.0f;
const float MAX_VOLUME = 1000000.0f;
const float DEFAULT_FRICTION = 0.5f;
const float MAX_FRICTION = 10.0f;

View file

@ -92,7 +92,6 @@ private:
EntityEditPacketSender* _entityPacketSender;
uint32_t _frameCount;
btScalar _infinity = BT_INFINITY; // HACK: eliminates unused variable warning from Bullet headers
};
#endif // hifi_PhysicsEngine_h