]> git.mxchange.org Git - simgear.git/commitdiff
warning fixes
authortorsten <torsten>
Thu, 20 Aug 2009 10:55:01 +0000 (10:55 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:37:02 +0000 (21:37 +0200)
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/ShaderGeometry.cxx

index 96e49776194d2a9545eef585dfd6c37710aa662f..97e1aebc92501b3076822d49ccb3c7cf81f96960 100644 (file)
@@ -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
index 265d90e7516d23d39218a728dd8fe72186e34122..089beb270c56e5ac56632406885d629ae1f9e564 100644 (file)
@@ -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;