1
0
Fork 0

Cleanup unused variable warning.

Remove, comment out or relocate variables as appropriate to silence
unused variable warning.
This commit is contained in:
Gary Preston 2017-04-05 02:01:50 +01:00 committed by James Turner
parent fd7bea6453
commit 8958b4d130
5 changed files with 10 additions and 6 deletions

View file

@ -307,7 +307,7 @@ printf("FT: %10.2f, %7.2f, MT: %7.2f\n", FT[i][X]*th, FTM[i][X]*mach, MT[i][X]
simd4_t<float,3> mu_body(-0.02f-0.7f*br, 0.8f, 0.0f);
simd4_t<float,3> FLGear = mNed2Body*Fn_lg + vUVWaero*mu_body;
simd4_t<float,3> MLGear = simd4::cross(gear_pos[i], FLGear);
// simd4_t<float,3> MLGear = simd4::cross(gear_pos[i], FLGear);
#if 0
printf("FLGear[%i]: %10.2f %10.2f %10.2f\n",i,FLGear[0], FLGear[1], FLGear[2]);
printf("MLGear[%i]: %10.2f %10.2f %10.2f\n",i,MLGear[0], MLGear[1], MLGear[2]);

View file

@ -2817,6 +2817,8 @@ void Options::setupRoot(int argc, char **argv)
SetupRootDialog::runDialog(usingDefaultRoot);
}
#else
SG_UNUSED(usingDefaultRoot);
// validate it
if (base_version.empty()) {
flightgear::fatalMessageBox("Base package not found",

View file

@ -447,14 +447,16 @@ static bool fgSetPosFromNAV( const string& id,
}
// Set current_options lon/lat given an aircraft carrier id
static bool fgSetPosFromCarrier( const string& carrier, const string& posid ) {
static bool fgSetPosFromCarrier( const string& carrier, const string& posid )
{
#ifndef FG_TESTLIB
// set initial position from runway and heading
SGGeod geodPos;
double heading;
SGVec3d uvw;
#ifndef FG_TESTLIB
if (FGAIManager::getStartPosition(carrier, posid, geodPos, heading, uvw)) {
double lon = geodPos.getLongitudeDeg();
double lat = geodPos.getLatitudeDeg();

View file

@ -1677,8 +1677,7 @@ FGMultiplayMgr::ProcessPosMsg(const FGMultiplayMgr::MsgBuf& Msg,
// strict about the validity of the property values.
const xdr_data_t* xdr = Msg.properties();
const xdr_data_t* data = xdr;
int MsgLenBytes = Msg.Header.MsgLen;
/*
* with V2 we use the pad to forcefully invoke older clients to verify (and discard)
* our new protocol.

View file

@ -993,9 +993,10 @@ static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args)
naRef vec = naNewVector(c);
naVec_append(vec, naNum(elev));
naRef matdata = naNil();
#ifndef FG_TESTLIB
naRef matdata = naNil();
const SGMaterial *mat = dynamic_cast<const SGMaterial *>(material);
if(mat) {
matdata = naNewHash(c);