Suppress warnings

This commit is contained in:
fredb
2009-07-26 20:24:57 +00:00
committed by Tim Moore
parent efa2876e29
commit 57ccb6fd6b
3 changed files with 6 additions and 6 deletions

View File

@@ -836,7 +836,7 @@ public:
/**
* Get the number of child nodes.
*/
int nChildren () const { return _children.size(); }
int nChildren () const { return (int)_children.size(); }
/**
@@ -1568,7 +1568,7 @@ public:
/**
* Get the number of listeners.
*/
int nListeners () const { return _listeners ? _listeners->size() : 0; }
int nListeners () const { return _listeners ? (int)_listeners->size() : 0; }
/**

View File

@@ -192,7 +192,7 @@ void Technique::releaseGLObjects(osg::State* state) const
pass->releaseGLObjects(state);
}
if (state == 0) {
for (int i = 0; i < _contextMap.size(); ++i) {
for (int i = 0; i < (int)_contextMap.size(); ++i) {
ContextInfo& info = _contextMap[i];
Status oldVal = info.valid();
info.valid.compareAndSwap(oldVal, UNKNOWN);
@@ -314,7 +314,7 @@ void Technique::setGLExtensionsPred(float glVersion,
void Technique::refreshValidity()
{
for (int i = 0; i < _contextMap.size(); ++i) {
for (int i = 0; i < (int)_contextMap.size(); ++i) {
ContextInfo& info = _contextMap[i];
Status oldVal = info.valid();
// What happens if we lose the race here?

View File

@@ -1202,7 +1202,7 @@ namespace simgear
void eval(bool& value, const expression::Binding* b) const
{
value = false;
for (int i = 0; i < getNumOperands(); ++i) {
for (int i = 0; i < (int)getNumOperands(); ++i) {
value = value || getOperand(i)->getValue(b);
if (value)
return;
@@ -1216,7 +1216,7 @@ namespace simgear
void eval(bool& value, const expression::Binding* b) const
{
value = true;
for (int i = 0; i < getNumOperands(); ++i) {
for (int i = 0; i < (int)getNumOperands(); ++i) {
value = value && getOperand(i)->getValue(b);
if (!value)
return;