From 61f97bb8dbdb8eb883fd2fdbe7585025735b404b Mon Sep 17 00:00:00 2001 From: David Williams Date: Fri, 1 Jul 2011 22:48:02 +0100 Subject: [PATCH] Fixes for GCC 4.6 warnings. --- library/PolyVoxCore/include/PolyVoxCore/GradientEstimators.h | 2 -- library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.h | 2 +- library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.inl | 2 +- library/PolyVoxCore/include/PolyVoxImpl/AStarPathfinderImpl.h | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/GradientEstimators.h b/library/PolyVoxCore/include/PolyVoxCore/GradientEstimators.h index 17c1431a..641c9dc2 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/GradientEstimators.h +++ b/library/PolyVoxCore/include/PolyVoxCore/GradientEstimators.h @@ -1,4 +1,3 @@ -#pragma region License /******************************************************************************* Copyright (c) 2005-2009 David Williams @@ -21,7 +20,6 @@ freely, subject to the following restrictions: 3. This notice may not be removed or altered from any source distribution. *******************************************************************************/ -#pragma endregion #ifndef __PolyVox_GradientEstimators_H__ #define __PolyVox_GradientEstimators_H__ diff --git a/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.h b/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.h index 73b6ede5..53f0ab96 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.h +++ b/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.h @@ -61,7 +61,7 @@ namespace PolyVox void addTriangleCubic(uint32_t index0, uint32_t index1, uint32_t index2); uint32_t addVertex(const VertexType& vertex); void clear(void); - const bool isEmpty(void) const; + bool isEmpty(void) const; //THESE FUNCTIONS TO BE REMOVED IN THE FUTURE. OR AT LEAST MOVED OUT OF THIS CLASS INTO FREE FUNCTIONS. //THEY ARE CAUSING PROBLEMS WITH THE SWIG BINDINGS. THE FUNCTIONS REGARDING NORMALS MAKE NO SENSE WHEN diff --git a/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.inl b/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.inl index a9158160..fd8e9dc4 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/SurfaceMesh.inl @@ -141,7 +141,7 @@ namespace PolyVox } template - const bool SurfaceMesh::isEmpty(void) const + bool SurfaceMesh::isEmpty(void) const { return (getNoOfVertices() == 0) || (getNoOfIndices() == 0); } diff --git a/library/PolyVoxCore/include/PolyVoxImpl/AStarPathfinderImpl.h b/library/PolyVoxCore/include/PolyVoxImpl/AStarPathfinderImpl.h index abb01c06..311b6f85 100644 --- a/library/PolyVoxCore/include/PolyVoxImpl/AStarPathfinderImpl.h +++ b/library/PolyVoxCore/include/PolyVoxImpl/AStarPathfinderImpl.h @@ -85,9 +85,9 @@ namespace PolyVox } PolyVox::Vector3DInt32 position; - Node* parent; float gVal; float hVal; + Node* parent; float f(void) const {