]> git.mxchange.org Git - simgear.git/commitdiff
Fix some unused/uninitialized variables.
authorThomas Geymayer <tomgey@gmail.com>
Sat, 7 Dec 2013 12:43:17 +0000 (13:43 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 7 Dec 2013 12:43:17 +0000 (13:43 +0100)
simgear/scene/tgdb/obj.cxx
simgear/structure/expression_test.cxx

index 5b484060ef4c6e4b7e57ff077305ce237b3a7202..771ff2c421c60f9a768701bf02161bc09086b30c 100644 (file)
@@ -489,10 +489,6 @@ public:
         continue;
 
       osg::Texture2D* object_mask  = mat->get_object_mask(triangleBin);
-      osg::Image* img;
-      if (object_mask != NULL) {
-          img = object_mask->getImage();
-      }
 
       int   group_count            = mat->get_object_group_count();
       float building_coverage      = mat->get_building_coverage();
@@ -502,7 +498,7 @@ public:
       if (building_coverage == 0)
          continue;
 
-      SGBuildingBin* bin;
+      SGBuildingBin* bin = NULL;
 
       if (building_coverage > 0) {
         bin = new SGBuildingBin(mat);
@@ -909,7 +905,7 @@ public:
     // Generate all the lighting objects for the tile.
     osg::LOD* generateLightingTileObjects()
     {
-      SGMaterialLib* matlib;
+      SGMaterialLib* matlib = NULL;
 
       if (_options)
         matlib = _options->getMaterialLib();
@@ -1050,7 +1046,7 @@ public:
     // Generate all the random forest, objects and buildings for the tile
     osg::LOD* generateRandomTileObjects()
     {
-      SGMaterialLib* matlib;
+      SGMaterialLib* matlib = NULL;
       bool use_random_objects = false;
       bool use_random_vegetation = false;
       bool use_random_buildings = false;
index f1ba16f6fadba065b0bb41a03eeef65ab209d216..a8bb9fe50eb0c3f6ed67d5c0a74b8d2af8bd8f39 100644 (file)
@@ -53,7 +53,7 @@ void testBasic()
 void testParse()
 {
     initPropTree();
-  
+#if 0
     const char* xml = "<?xml version=\"1.0\"?>"
         "<PropertyList>"
             "<expression>"
@@ -69,7 +69,7 @@ void testParse()
               "</and>"
             "</expression>"
         "</PropertyList>";
-    
+#endif
     const char* xml2 = "<?xml version=\"1.0\"?>"
         "<PropertyList>"
               "<sqr>"