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

@ -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")) {

View file

@ -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);