1
0
Fork 0

gcc warning fixes

This commit is contained in:
Torsten Dreyer 2011-02-14 20:58:54 +01:00
parent ddd04d91ca
commit a1acd92a1c

View file

@ -540,7 +540,7 @@ void FGJSBsim::update( double dt )
} }
FGJSBBase::Message* msg; FGJSBBase::Message* msg;
while (msg = fdmex->ProcessNextMessage()) { while ((msg = fdmex->ProcessNextMessage()) != NULL) {
// msg = fdmex->ProcessNextMessage(); // msg = fdmex->ProcessNextMessage();
switch (msg->type) { switch (msg->type) {
case FGJSBBase::Message::eText: case FGJSBBase::Message::eText:
@ -636,7 +636,7 @@ bool FGJSBsim::copy_to_JSBsim()
} // end FGTurbine code block } // end FGTurbine code block
case FGEngine::etRocket: case FGEngine::etRocket:
{ // FGRocket code block { // FGRocket code block
FGRocket* eng = (FGRocket*)Propulsion->GetEngine(i); // FGRocket* eng = (FGRocket*)Propulsion->GetEngine(i);
break; break;
} // end FGRocket code block } // end FGRocket code block
case FGEngine::etTurboprop: case FGEngine::etTurboprop:
@ -828,7 +828,7 @@ bool FGJSBsim::copy_from_JSBsim()
break; break;
case FGEngine::etRocket: case FGEngine::etRocket:
{ // FGRocket code block { // FGRocket code block
FGRocket* eng = (FGRocket*)Propulsion->GetEngine(i); // FGRocket* eng = (FGRocket*)Propulsion->GetEngine(i);
} // end FGRocket code block } // end FGRocket code block
break; break;
case FGEngine::etTurbine: case FGEngine::etTurbine:
@ -898,7 +898,7 @@ bool FGJSBsim::copy_from_JSBsim()
switch (thruster->GetType()) { switch (thruster->GetType()) {
case FGThruster::ttNozzle: case FGThruster::ttNozzle:
{ // FGNozzle code block { // FGNozzle code block
FGNozzle* noz = (FGNozzle*)thruster; // FGNozzle* noz = (FGNozzle*)thruster;
} // end FGNozzle code block } // end FGNozzle code block
break; break;
case FGThruster::ttPropeller: case FGThruster::ttPropeller:
@ -912,7 +912,7 @@ bool FGJSBsim::copy_from_JSBsim()
break; break;
case FGThruster::ttRotor: case FGThruster::ttRotor:
{ // FGRotor code block { // FGRotor code block
FGRotor* rotor = (FGRotor*)thruster; // FGRotor* rotor = (FGRotor*)thruster;
} // end FGRotor code block } // end FGRotor code block
break; break;
case FGThruster::ttDirect: case FGThruster::ttDirect: