Ephysics: get rid of shadow warnings
authorLeandro Dorileo <dorileo@profusion.mobi>
Fri, 4 Jan 2013 01:21:07 +0000 (01:21 +0000)
committerLeandro Dorileo <dorileo@profusion.mobi>
Fri, 4 Jan 2013 01:21:07 +0000 (01:21 +0000)
Get rid of -Wshadow warnings on bullet's C++ "shadowed" variables.

SVN revision: 82136

src/lib/ephysics/ephysics_body.cpp
src/lib/ephysics/ephysics_private.h

index eddfbfbee95e196c68fce39c17f162d14de8e32d..43a6d2728f1af458f8a6d6fb48eca335a42178f0 100644 (file)
@@ -4,9 +4,15 @@
 
 #include <Evas.h>
 #include <Ecore.h>
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+
 #include <BulletCollision/CollisionShapes/btShapeHull.h>
 #include <LinearMath/btGeometryUtil.h>
 
+#pragma GCC diagnostic pop
+
 #include <math.h>
 
 #include "ephysics_private.h"
index 1f888ca88d6e318dba7917d79f94c02973c368c3..36ece8c678c7684a10305e1124c11ecd451d7e98 100644 (file)
@@ -7,6 +7,7 @@
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wunused-parameter"
+#pragma GCC diagnostic ignored "-Wshadow"
 
 #include <BulletSoftBody/btSoftBodyRigidBodyCollisionConfiguration.h>
 #include <BulletSoftBody/btDefaultSoftBodySolver.h>