From: torsten Date: Thu, 20 Aug 2009 10:55:01 +0000 (+0000) Subject: warning fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a0a5eb8aef5ea7590ea37a4e9bacefb935ec474a;p=simgear.git warning fixes --- diff --git a/simgear/scene/tgdb/SGTexturedTriangleBin.hxx b/simgear/scene/tgdb/SGTexturedTriangleBin.hxx index 96e49776..97e1aebc 100644 --- a/simgear/scene/tgdb/SGTexturedTriangleBin.hxx +++ b/simgear/scene/tgdb/SGTexturedTriangleBin.hxx @@ -173,7 +173,7 @@ public: int woodcount = (int) (unit / wood_coverage); - for (unsigned j = 0; j < woodcount; j++) { + for (int j = 0; j < woodcount; j++) { if (wood_size < area) { // We need to place a wood within the triangle and populate it diff --git a/simgear/scene/tgdb/ShaderGeometry.cxx b/simgear/scene/tgdb/ShaderGeometry.cxx index 265d90e7..089beb27 100644 --- a/simgear/scene/tgdb/ShaderGeometry.cxx +++ b/simgear/scene/tgdb/ShaderGeometry.cxx @@ -66,7 +66,7 @@ BoundingBox ShaderGeometry::computeBound() const const Vec4Array* posScales = _posScaleArray.get(); if (!posScales) return bb; - size_t numPosScales = posScales->size(); +// size_t numPosScales = posScales->size(); for (Vec4Array::const_iterator iter = _posScaleArray->begin(), e = _posScaleArray->end(); iter != e; @@ -94,7 +94,7 @@ bool ShaderGeometry_readLocalData(Object& obj, Input& fr) geom._geometry = drawable; } } - int capacity = 0; +// int capacity = 0; if (fr.matchSequence("posScale %i {")) { int entry = fr[1].getNoNestedBrackets(); int capacity;