xiangaodielian / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

bullet/LinearMath/btScalar.h:337:14: warning: ‘btInfinityMask’ defined but not used #770

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I compiling OpenMW sources (which is using Bullet library for physics) I 
see warning about unused variable btInfinityMask in bullet (maybe it would be 
better to use enum { btInfinityMask = something }; instead of static int?).

What is the expected output?
No warnings at all. 

What do you see instead?
In file included from /usr/include/bullet/LinearMath/btVector3.h:21:0,
                 from /usr/include/bullet/LinearMath/btMatrix3x3.h:19,
                 from /usr/include/bullet/LinearMath/btTransform.h:21,
                 from /usr/include/bullet/BulletCollision/CollisionShapes/btCollisionShape.h:19,
                 from /usr/include/bullet/BulletCollision/CollisionShapes/btConcaveShape.h:19,
                 from /usr/include/bullet/BulletCollision/CollisionShapes/btTriangleMeshShape.h:19,
                 from /usr/include/bullet/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.h:19,
                 from ~/openmw/./components/nifbullet/bulletnifloader.hpp:29,
                 from ~/openmw/apps/openmw/engine.cpp:18:
/usr/include/bullet/LinearMath/btScalar.h:337:14: warning: ‘btInfinityMask’ 
defined but not used [-Wunused-variable]
  static  int btInfinityMask = 0x7F800000;

What version of the product are you using? On what operating system?
Bullet 2.82, compilation was done on Arch Linux (64bit) with GCC 4.8.2 

If you need any additional information just let me know and I will try to 
provide it.

Original issue reported on code.google.com by lgromano...@gmail.com on 16 Nov 2013 at 6:48

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2714.

Original comment by erwin.coumans on 17 Nov 2013 at 8:13