diff options
author | Kent Mein <mein@cs.umn.edu> | 2006-01-06 02:10:54 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2006-01-06 02:10:54 +0300 |
commit | 39fcd3586f905f36f2668850a4be5e77c5d70018 (patch) | |
tree | 1698797b0404603b680e1d74f98c91347f7c7109 | |
parent | 2901da3c29087f5db3fadcbc6a2b3e05d8cdf0fb (diff) |
Lots of stupid warning fixes:
Added newlines at end of a bunch of files that didn't have them.
removed a couple of unused variables and an extra ';'
(Also removed config.h crap from these files)
Kent
33 files changed, 54 insertions, 54 deletions
diff --git a/extern/bullet/Bullet/CollisionShapes/BoxShape.cpp b/extern/bullet/Bullet/CollisionShapes/BoxShape.cpp index b3274435263..f7492328c02 100644 --- a/extern/bullet/Bullet/CollisionShapes/BoxShape.cpp +++ b/extern/bullet/Bullet/CollisionShapes/BoxShape.cpp @@ -50,4 +50,5 @@ void BoxShape::CalculateLocalInertia(SimdScalar mass,SimdVector3& inertia) inertia[2] = mass/(12.0f) * (lx*lx + ly*ly); -}
\ No newline at end of file +} + diff --git a/extern/bullet/Bullet/CollisionShapes/ConeShape.h b/extern/bullet/Bullet/CollisionShapes/ConeShape.h index 5a6b27c904d..55a6d02c334 100644 --- a/extern/bullet/Bullet/CollisionShapes/ConeShape.h +++ b/extern/bullet/Bullet/CollisionShapes/ConeShape.h @@ -70,4 +70,5 @@ public: }; -#endif //CONE_MINKOWSKI_H
\ No newline at end of file +#endif //CONE_MINKOWSKI_H + diff --git a/extern/bullet/Bullet/CollisionShapes/ConvexHullShape.h b/extern/bullet/Bullet/CollisionShapes/ConvexHullShape.h index 76c198ab93a..5906b9354c4 100644 --- a/extern/bullet/Bullet/CollisionShapes/ConvexHullShape.h +++ b/extern/bullet/Bullet/CollisionShapes/ConvexHullShape.h @@ -55,4 +55,5 @@ public: }; -#endif //CONVEX_HULL_SHAPE_H
\ No newline at end of file +#endif //CONVEX_HULL_SHAPE_H + diff --git a/extern/bullet/Bullet/CollisionShapes/ConvexTriangleCallback.h b/extern/bullet/Bullet/CollisionShapes/ConvexTriangleCallback.h index 8e0e446a549..c9f1a4acffd 100644 --- a/extern/bullet/Bullet/CollisionShapes/ConvexTriangleCallback.h +++ b/extern/bullet/Bullet/CollisionShapes/ConvexTriangleCallback.h @@ -46,4 +46,5 @@ int m_triangleCount; }; -#endif //CONVEX_TRIANGLE_CALLBACK_H
\ No newline at end of file +#endif //CONVEX_TRIANGLE_CALLBACK_H + diff --git a/extern/bullet/Bullet/CollisionShapes/CylinderShape.h b/extern/bullet/Bullet/CollisionShapes/CylinderShape.h index 8b1cb66685a..e35464ef1d3 100644 --- a/extern/bullet/Bullet/CollisionShapes/CylinderShape.h +++ b/extern/bullet/Bullet/CollisionShapes/CylinderShape.h @@ -82,4 +82,5 @@ public: }; -#endif //CYLINDER_MINKOWSKI_H
\ No newline at end of file +#endif //CYLINDER_MINKOWSKI_H + diff --git a/extern/bullet/Bullet/CollisionShapes/OptimizedBvh.h b/extern/bullet/Bullet/CollisionShapes/OptimizedBvh.h index 911bb9af432..ca71ded41c9 100644 --- a/extern/bullet/Bullet/CollisionShapes/OptimizedBvh.h +++ b/extern/bullet/Bullet/CollisionShapes/OptimizedBvh.h @@ -89,4 +89,5 @@ public: }; -#endif //OPTIMIZED_BVH_H
\ No newline at end of file +#endif //OPTIMIZED_BVH_H + diff --git a/extern/bullet/Bullet/CollisionShapes/StridingMeshInterface.cpp b/extern/bullet/Bullet/CollisionShapes/StridingMeshInterface.cpp index cbbbdcbe99e..9763a3c02a2 100644 --- a/extern/bullet/Bullet/CollisionShapes/StridingMeshInterface.cpp +++ b/extern/bullet/Bullet/CollisionShapes/StridingMeshInterface.cpp @@ -76,4 +76,5 @@ void StridingMeshInterface::InternalProcessAllTriangles(InternalTriangleIndexCal unLockReadOnlyVertexBase(part); } -}
\ No newline at end of file +} + diff --git a/extern/bullet/Bullet/CollisionShapes/TriangleCallback.cpp b/extern/bullet/Bullet/CollisionShapes/TriangleCallback.cpp index 6fc69355c2d..64704dc41fd 100644 --- a/extern/bullet/Bullet/CollisionShapes/TriangleCallback.cpp +++ b/extern/bullet/Bullet/CollisionShapes/TriangleCallback.cpp @@ -20,4 +20,5 @@ TriangleCallback::~TriangleCallback() InternalTriangleIndexCallback::~InternalTriangleIndexCallback() { -}
\ No newline at end of file +} + diff --git a/extern/bullet/Bullet/CollisionShapes/TriangleIndexVertexArray.h b/extern/bullet/Bullet/CollisionShapes/TriangleIndexVertexArray.h index 4784dc3938f..1e82950a344 100644 --- a/extern/bullet/Bullet/CollisionShapes/TriangleIndexVertexArray.h +++ b/extern/bullet/Bullet/CollisionShapes/TriangleIndexVertexArray.h @@ -43,4 +43,5 @@ public: virtual void preallocateVertices(int numverts){} virtual void preallocateIndices(int numindices){} -};
\ No newline at end of file +}; + diff --git a/extern/bullet/Bullet/CollisionShapes/TriangleShape.h b/extern/bullet/Bullet/CollisionShapes/TriangleShape.h index 60ea95da5d0..570a312da1a 100644 --- a/extern/bullet/Bullet/CollisionShapes/TriangleShape.h +++ b/extern/bullet/Bullet/CollisionShapes/TriangleShape.h @@ -143,4 +143,5 @@ public: }; -#endif //OBB_TRIANGLE_MINKOWSKI_H
\ No newline at end of file +#endif //OBB_TRIANGLE_MINKOWSKI_H + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/ContinuousConvexCollision.h b/extern/bullet/Bullet/NarrowPhaseCollision/ContinuousConvexCollision.h index b8b31377aa7..94f1dafe1bb 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/ContinuousConvexCollision.h +++ b/extern/bullet/Bullet/NarrowPhaseCollision/ContinuousConvexCollision.h @@ -43,4 +43,5 @@ public: }; -#endif //CONTINUOUS_COLLISION_CONVEX_CAST_H
\ No newline at end of file +#endif //CONTINUOUS_COLLISION_CONVEX_CAST_H + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/ConvexPenetrationDepthSolver.h b/extern/bullet/Bullet/NarrowPhaseCollision/ConvexPenetrationDepthSolver.h index 8af37e08032..a8fdbc55414 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/ConvexPenetrationDepthSolver.h +++ b/extern/bullet/Bullet/NarrowPhaseCollision/ConvexPenetrationDepthSolver.h @@ -30,4 +30,5 @@ public: }; -#endif //CONVEX_PENETRATION_DEPTH_H
\ No newline at end of file +#endif //CONVEX_PENETRATION_DEPTH_H + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/GjkConvexCast.cpp b/extern/bullet/Bullet/NarrowPhaseCollision/GjkConvexCast.cpp index 45d7403586f..4c129848fe0 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/GjkConvexCast.cpp +++ b/extern/bullet/Bullet/NarrowPhaseCollision/GjkConvexCast.cpp @@ -154,4 +154,5 @@ bool GjkConvexCast::calcTimeOfImpact( } return false; -}
\ No newline at end of file +} + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp b/extern/bullet/Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp index bb45e5215f3..98e45f6d1df 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp +++ b/extern/bullet/Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp @@ -30,4 +30,5 @@ void ManifoldContactAddResult::AddContactPoint(const SimdVector3& normalOnBInWor { m_manifoldPtr->AddManifoldPoint(newPt); } -}
\ No newline at end of file +} + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/PointCollector.h b/extern/bullet/Bullet/NarrowPhaseCollision/PointCollector.h index f39fa090ae4..e4f22b69f46 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/PointCollector.h +++ b/extern/bullet/Bullet/NarrowPhaseCollision/PointCollector.h @@ -33,4 +33,5 @@ struct PointCollector : public DiscreteCollisionDetectorInterface::Result } }; -#endif //POINT_COLLECTOR_H
\ No newline at end of file +#endif //POINT_COLLECTOR_H + diff --git a/extern/bullet/Bullet/NarrowPhaseCollision/RaycastCallback.h b/extern/bullet/Bullet/NarrowPhaseCollision/RaycastCallback.h index 8fc97bb3b40..a1d34dcb2f6 100644 --- a/extern/bullet/Bullet/NarrowPhaseCollision/RaycastCallback.h +++ b/extern/bullet/Bullet/NarrowPhaseCollision/RaycastCallback.h @@ -37,4 +37,5 @@ public: virtual void ProcessTriangle(SimdVector3* triangle); }; -#endif //RAYCAST_TRI_CALLBACK_H
\ No newline at end of file +#endif //RAYCAST_TRI_CALLBACK_H + diff --git a/extern/bullet/BulletDynamics/ConstraintSolver/Solve2LinearConstraint.cpp b/extern/bullet/BulletDynamics/ConstraintSolver/Solve2LinearConstraint.cpp index 4111de679d0..849e57d1088 100644 --- a/extern/bullet/BulletDynamics/ConstraintSolver/Solve2LinearConstraint.cpp +++ b/extern/bullet/BulletDynamics/ConstraintSolver/Solve2LinearConstraint.cpp @@ -231,4 +231,5 @@ void Solve2LinearConstraint::resolveAngularConstraint( const SimdMatrix3x3& invI SimdScalar& imp0,SimdScalar& imp1) { -}
\ No newline at end of file +} + diff --git a/extern/bullet/BulletDynamics/ConstraintSolver/SorLcp.h b/extern/bullet/BulletDynamics/ConstraintSolver/SorLcp.h index 7edeaba3dd1..37fe09c2607 100644 --- a/extern/bullet/BulletDynamics/ConstraintSolver/SorLcp.h +++ b/extern/bullet/BulletDynamics/ConstraintSolver/SorLcp.h @@ -41,4 +41,5 @@ int dRandInt2 (int n); #endif //SOR_LCP_H -#endif //USE_SOR_SOLVER
\ No newline at end of file +#endif //USE_SOR_SOLVER + diff --git a/extern/bullet/BulletDynamics/Dynamics/ContactJoint.h b/extern/bullet/BulletDynamics/Dynamics/ContactJoint.h index 54cc5283da0..4e1dc8e1669 100644 --- a/extern/bullet/BulletDynamics/Dynamics/ContactJoint.h +++ b/extern/bullet/BulletDynamics/Dynamics/ContactJoint.h @@ -30,4 +30,6 @@ public: }; -#endif //CONTACT_JOINT_H
\ No newline at end of file + +#endif //CONTACT_JOINT_H + diff --git a/extern/bullet/BulletDynamics/Dynamics/MassProps.h b/extern/bullet/BulletDynamics/Dynamics/MassProps.h index 892e1c0b9a8..e0e4e87bc8a 100644 --- a/extern/bullet/BulletDynamics/Dynamics/MassProps.h +++ b/extern/bullet/BulletDynamics/Dynamics/MassProps.h @@ -15,4 +15,5 @@ struct MassProps { }; -#endif
\ No newline at end of file +#endif + diff --git a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IMotionState.cpp b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IMotionState.cpp index b8521ffaf87..1bf92b4effc 100644 --- a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IMotionState.cpp +++ b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IMotionState.cpp @@ -13,10 +13,6 @@ #include "PHY_IMotionState.h" -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - PHY_IMotionState::~PHY_IMotionState() { diff --git a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsController.cpp b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsController.cpp index b051a45bd13..655763d0bf6 100644 --- a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsController.cpp +++ b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsController.cpp @@ -13,10 +13,6 @@ #include "PHY_IPhysicsController.h" -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - PHY_IPhysicsController::~PHY_IPhysicsController() { diff --git a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsEnvironment.cpp b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsEnvironment.cpp index 1794606edf3..f59efad561a 100644 --- a/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsEnvironment.cpp +++ b/extern/bullet/Extras/PhysicsInterface/Common/PHY_IPhysicsEnvironment.cpp @@ -13,10 +13,6 @@ #include "PHY_IPhysicsEnvironment.h" -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - /** * Physics Environment takes care of stepping the simulation and is a container for physics entities (rigidbodies,constraints, materials etc.) * A derived class may be able to 'construct' entities by loading and/or converting diff --git a/extern/bullet/LinearMath/AabbUtil2.h b/extern/bullet/LinearMath/AabbUtil2.h index 27172f93139..77271e13202 100644 --- a/extern/bullet/LinearMath/AabbUtil2.h +++ b/extern/bullet/LinearMath/AabbUtil2.h @@ -64,4 +64,5 @@ SIMD_FORCE_INLINE bool TestTriangleAgainstAabb2(const SimdVector3 *vertices, return true; } -#endif
\ No newline at end of file +#endif + diff --git a/extern/bullet/LinearMath/IDebugDraw.h b/extern/bullet/LinearMath/IDebugDraw.h index be2e421a77e..7734eccf510 100644 --- a/extern/bullet/LinearMath/IDebugDraw.h +++ b/extern/bullet/LinearMath/IDebugDraw.h @@ -57,4 +57,5 @@ class IDebugDraw }; -#endif //IDEBUG_DRAW__H
\ No newline at end of file +#endif //IDEBUG_DRAW__H + diff --git a/extern/bullet/LinearMath/SimdTransformUtil.h b/extern/bullet/LinearMath/SimdTransformUtil.h index 179e2f51daa..ab3d3f45a30 100644 --- a/extern/bullet/LinearMath/SimdTransformUtil.h +++ b/extern/bullet/LinearMath/SimdTransformUtil.h @@ -91,4 +91,5 @@ public: }; -#endif //SIMD_TRANSFORM_UTIL_H
\ No newline at end of file +#endif //SIMD_TRANSFORM_UTIL_H + diff --git a/intern/bsp/intern/BSP_CSGMesh_CFIterator.h b/intern/bsp/intern/BSP_CSGMesh_CFIterator.h index 453e6e20ea7..77ba076885f 100755 --- a/intern/bsp/intern/BSP_CSGMesh_CFIterator.h +++ b/intern/bsp/intern/BSP_CSGMesh_CFIterator.h @@ -178,7 +178,6 @@ BSP_CSGMesh_FaceIt_Fill( // assume CSG_IteratorPtr is of the correct type. BSP_CSGMesh_FaceIt * face_it = (BSP_CSGMesh_FaceIt *)it; // essentially iterating through a triangle fan here. - const int tri_index = face_it->face_triangle; if (face_it->pos->m_verts.size()>3) { // QUAD diff --git a/intern/bsp/intern/CSG_BooleanOps.cpp b/intern/bsp/intern/CSG_BooleanOps.cpp index a677c9c6e94..9ea0ef60be5 100755 --- a/intern/bsp/intern/CSG_BooleanOps.cpp +++ b/intern/bsp/intern/CSG_BooleanOps.cpp @@ -33,10 +33,6 @@ * Implementation of external api for CSG part of BSP lib interface. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "../extern/CSG_BooleanOps.h" #include "BSP_CSGMesh_CFIterator.h" #include "BSP_CSGMeshBuilder.h" @@ -47,7 +43,7 @@ #include "../../boolop/extern/BOP_Interface.h" #include <iostream> using namespace std; -#include "BSP_MeshPrimitives.h"; +#include "BSP_MeshPrimitives.h" struct BSP_MeshInfo { BSP_CSGMesh *output_mesh; @@ -117,8 +113,6 @@ CSG_PerformBooleanOperation( BSP_MeshInfo * mesh_info = static_cast<BSP_MeshInfo *>(operation->CSG_info); if (mesh_info == NULL) return 0; - bool success = 1; - obAFaces.Reset(obAFaces.it); obBFaces.Reset(obBFaces.it); obAVertices.Reset(obAVertices.it); diff --git a/source/blender/src/booleanops_mesh.c b/source/blender/src/booleanops_mesh.c index e2bdc51ecea..1323bbcb17f 100644 --- a/source/blender/src/booleanops_mesh.c +++ b/source/blender/src/booleanops_mesh.c @@ -52,10 +52,6 @@ #include "BLI_arithb.h" -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - /** * Implementation of boolean ops mesh interface. */ @@ -304,5 +300,5 @@ NewBooleanMeshTest( return 1; } +#endif -#endif
\ No newline at end of file diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c index 1705ad14acc..229c70c89ec 100644 --- a/source/blender/src/editconstraint.c +++ b/source/blender/src/editconstraint.c @@ -778,4 +778,5 @@ void ob_clear_constraints(void) BIF_undo_push("Clear Constraint(s)"); -}
\ No newline at end of file +} + diff --git a/source/gameengine/Converter/BL_SkinDeformer.cpp b/source/gameengine/Converter/BL_SkinDeformer.cpp index 84a3b8dcc5c..01997e85e42 100644 --- a/source/gameengine/Converter/BL_SkinDeformer.cpp +++ b/source/gameengine/Converter/BL_SkinDeformer.cpp @@ -165,7 +165,6 @@ void BL_SkinDeformer::Update(void) /* store verts locally */ for (int v =0; v<m_bmesh->totvert; v++){ - float co[3]; /* XXX note, dunno about this line */ m_transverts[v]=MT_Point3(m_bmesh->mvert[v].co); } diff --git a/source/gameengine/Ketsji/KX_BulletPhysicsController.h b/source/gameengine/Ketsji/KX_BulletPhysicsController.h index 9e9b0816cbe..2251c3b1f90 100644 --- a/source/gameengine/Ketsji/KX_BulletPhysicsController.h +++ b/source/gameengine/Ketsji/KX_BulletPhysicsController.h @@ -66,4 +66,5 @@ public: }; -#endif //KX_BULLET2PHYSICS_CONTROLLER
\ No newline at end of file +#endif //KX_BULLET2PHYSICS_CONTROLLER + diff --git a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp index fb5037345a8..1c861ee98d1 100644 --- a/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp +++ b/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp @@ -955,8 +955,6 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj, halfExtents /= 2.f; - SimdVector3& he = halfExtents; - SimdTransform& tr = trans; bm = new ConeShape(objprop->m_boundobject.c.m_radius,objprop->m_boundobject.c.m_height); bm->CalculateLocalInertia(ci.m_mass,ci.m_localInertiaTensor); @@ -1069,5 +1067,5 @@ void KX_ClearBulletSharedShapes() } - #endif + |