Silence a few compiler warnings
This commit is contained in:
parent
5aef1a8700
commit
1a0537e493
4 changed files with 17 additions and 17 deletions
|
@ -66,7 +66,7 @@
|
|||
|
||||
double uiuc_convert( int conversionType )
|
||||
{
|
||||
double factor;
|
||||
double factor = 1;
|
||||
|
||||
switch(conversionType)
|
||||
{
|
||||
|
|
|
@ -129,7 +129,6 @@ 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")) {
|
||||
|
|
|
@ -1220,6 +1220,7 @@ 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))
|
||||
locals = naNewHash(ctx);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue