Suppress warnings
This commit is contained in:
@@ -836,7 +836,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Get the number of child nodes.
|
* 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.
|
* Get the number of listeners.
|
||||||
*/
|
*/
|
||||||
int nListeners () const { return _listeners ? _listeners->size() : 0; }
|
int nListeners () const { return _listeners ? (int)_listeners->size() : 0; }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ void Technique::releaseGLObjects(osg::State* state) const
|
|||||||
pass->releaseGLObjects(state);
|
pass->releaseGLObjects(state);
|
||||||
}
|
}
|
||||||
if (state == 0) {
|
if (state == 0) {
|
||||||
for (int i = 0; i < _contextMap.size(); ++i) {
|
for (int i = 0; i < (int)_contextMap.size(); ++i) {
|
||||||
ContextInfo& info = _contextMap[i];
|
ContextInfo& info = _contextMap[i];
|
||||||
Status oldVal = info.valid();
|
Status oldVal = info.valid();
|
||||||
info.valid.compareAndSwap(oldVal, UNKNOWN);
|
info.valid.compareAndSwap(oldVal, UNKNOWN);
|
||||||
@@ -314,7 +314,7 @@ void Technique::setGLExtensionsPred(float glVersion,
|
|||||||
|
|
||||||
void Technique::refreshValidity()
|
void Technique::refreshValidity()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < _contextMap.size(); ++i) {
|
for (int i = 0; i < (int)_contextMap.size(); ++i) {
|
||||||
ContextInfo& info = _contextMap[i];
|
ContextInfo& info = _contextMap[i];
|
||||||
Status oldVal = info.valid();
|
Status oldVal = info.valid();
|
||||||
// What happens if we lose the race here?
|
// What happens if we lose the race here?
|
||||||
|
|||||||
@@ -1202,7 +1202,7 @@ namespace simgear
|
|||||||
void eval(bool& value, const expression::Binding* b) const
|
void eval(bool& value, const expression::Binding* b) const
|
||||||
{
|
{
|
||||||
value = false;
|
value = false;
|
||||||
for (int i = 0; i < getNumOperands(); ++i) {
|
for (int i = 0; i < (int)getNumOperands(); ++i) {
|
||||||
value = value || getOperand(i)->getValue(b);
|
value = value || getOperand(i)->getValue(b);
|
||||||
if (value)
|
if (value)
|
||||||
return;
|
return;
|
||||||
@@ -1216,7 +1216,7 @@ namespace simgear
|
|||||||
void eval(bool& value, const expression::Binding* b) const
|
void eval(bool& value, const expression::Binding* b) const
|
||||||
{
|
{
|
||||||
value = true;
|
value = true;
|
||||||
for (int i = 0; i < getNumOperands(); ++i) {
|
for (int i = 0; i < (int)getNumOperands(); ++i) {
|
||||||
value = value && getOperand(i)->getValue(b);
|
value = value && getOperand(i)->getValue(b);
|
||||||
if (!value)
|
if (!value)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user