Show
Ignore:
Timestamp:
12/18/08 12:06:57 (5 years ago)
Author:
robert
Message:

Fixed warnings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgTerrain/GeometryTechnique.cpp

    r9358 r9388  
    284284     
    285285 
    286     float minHeight = 0.0; 
     286    //float minHeight = 0.0; 
    287287    float scaleHeight = _terrainTile->getTerrain() ? _terrainTile->getTerrain()->getVerticalScale() : 1.0f; 
    288288 
     
    312312                    { 
    313313                        if (switchLayer->getActiveLayer()>=0 && 
    314                             switchLayer->getActiveLayer()<switchLayer->getNumLayers() && 
     314                            static_cast<unsigned int>(switchLayer->getActiveLayer())<switchLayer->getNumLayers() && 
    315315                            switchLayer->getLayer(switchLayer->getActiveLayer())) 
    316316                        { 
     
    698698        if (switchLayer) 
    699699        { 
    700             if (switchLayer->getActiveLayer()<0 || switchLayer->getActiveLayer()>=switchLayer->getNumLayers()) 
     700            if (switchLayer->getActiveLayer()<0 ||  
     701                static_cast<unsigned int>(switchLayer->getActiveLayer())>=switchLayer->getNumLayers()) 
    701702            { 
    702703                continue;