1
0
Fork 0

Silence a few compiler warnings

This commit is contained in:
Erik Hofman 2017-01-26 15:37:43 +01:00
parent 5aef1a8700
commit 1a0537e493
4 changed files with 17 additions and 17 deletions

View file

@ -66,7 +66,7 @@
double uiuc_convert( int conversionType )
{
double factor;
double factor = 1;
switch(conversionType)
{

View file

@ -280,13 +280,13 @@ void FGInputDevice::update( double dt )
for( map<string,FGInputEvent_ptr>::iterator it = handledEvents.begin(); it != handledEvents.end(); it++ )
(*it).second->update( dt );
report_setting_list_t::const_iterator it;
for (it = reportSettings.begin(); it != reportSettings.end(); ++it) {
if ((*it)->Test()) {
std::string reportData = (*it)->reportBytes(nasalModule);
SendFeatureReport((*it)->getReportId(), reportData);
}
report_setting_list_t::const_iterator it;
for (it = reportSettings.begin(); it != reportSettings.end(); ++it) {
if ((*it)->Test()) {
std::string reportData = (*it)->reportBytes(nasalModule);
SendFeatureReport((*it)->getReportId(), reportData);
}
}
}
void FGInputDevice::HandleEvent( FGEventData & eventData )

View file

@ -129,16 +129,15 @@ FGModelMgr::add_model (SGPropertyNode * node)
else
model->setHeadingDeg(node->getDoubleValue("heading-deg"));
if (node->hasChild("enable-hot")) {
osg::Node::NodeMask mask = model->getSceneGraph()->getNodeMask();
if (node->getBoolValue("enable-hot")) {
mask |= SG_NODEMASK_TERRAIN_BIT;
} else {
mask &= ~SG_NODEMASK_TERRAIN_BIT;
}
model->getSceneGraph()->setNodeMask(mask);
if (node->hasChild("enable-hot")) {
osg::Node::NodeMask mask = model->getSceneGraph()->getNodeMask();
if (node->getBoolValue("enable-hot")) {
mask |= SG_NODEMASK_TERRAIN_BIT;
} else {
mask &= ~SG_NODEMASK_TERRAIN_BIT;
}
model->getSceneGraph()->setNodeMask(mask);
}
// Add this model to the global scene graph
globals->get_scenery()->get_scene_graph()->addChild(model->getSceneGraph());

View file

@ -1220,7 +1220,8 @@ bool FGNasalSys::createModule(const char* moduleName, const char* fileName,
naStr_fromdata(modname, (char*)moduleName, strlen(moduleName));
if (naIsNil(_globals))
return false;
if (!naHash_get(_globals, modname, &locals))
if (!naHash_get(_globals, modname, &locals))
locals = naNewHash(ctx);
_cmdArg = (SGPropertyNode*)cmdarg;