--warnings

This commit is contained in:
mfranz
2006-03-14 15:55:24 +00:00
parent 2cccc26541
commit 688cffb031
4 changed files with 4 additions and 8 deletions

View File

@@ -911,7 +911,7 @@ SGPropertyNode_ptr
SGPropertyNode::removeChild (int pos, bool keep)
{
SGPropertyNode_ptr node;
if (pos < 0 || pos >= _children.size())
if (pos < 0 || pos >= (int)_children.size())
return node;
vector<SGPropertyNode_ptr>::iterator it = _children.begin();

View File

@@ -1185,9 +1185,9 @@ private:
class hash_table;
int _index;
string _name;
mutable string _display_name;
int _index;
/// To avoid cyclic reference counting loops this shall not be a reference
/// counted pointer
SGPropertyNode * _parent;

View File

@@ -905,7 +905,6 @@ void SGShadowVolume::deleteOccluderFromTile(ssgBranch *tile) {
}
void SGShadowVolume::deleteOccluder(ssgBranch *occluder) {
ssgBranch *branch = occluder;
// skip first node and go to first transform (placement)
while( occluder && !occluder->isA(ssgTypeTransform()))
occluder = (ssgBranch *) occluder->getKid(0);
@@ -919,9 +918,6 @@ void SGShadowVolume::deleteOccluder(ssgBranch *occluder) {
}
void SGShadowVolume::addOccluder(ssgBranch *occluder, OccluderType occluder_type, ssgBranch *tile) {
ssgBranch *branch = occluder;
// skip first node and go to first transform (placement)
while( occluder && !occluder->isA(ssgTypeTransform()))
occluder = (ssgBranch *) occluder->getKid(0);

View File

@@ -91,12 +91,12 @@ bool SGBbCache::allocTextureMemory(int cacheCount, int textureDimension) {
SGBbCache::SGBbCache(void) :
bbListCount(0),
cacheSizeKb(0),
textureWH(0),
cacheSizeKb(0),
builtBBCount(0),
frameNumber(0),
rt(0),
rtAvailable(false),
frameNumber(0),
maxImpostorRegenFrame(20)
{
}