Suppress warnings
This commit is contained in:
parent
0783a96d4d
commit
219be77f1e
12 changed files with 21 additions and 24 deletions
|
@ -60,7 +60,7 @@ void PerformanceDB::load(SGPath filename) {
|
|||
SGPropertyNode root;
|
||||
try {
|
||||
readProperties(filename.str(), &root);
|
||||
} catch (const sg_exception &e) {
|
||||
} catch (const sg_exception &) {
|
||||
SG_LOG(SG_GENERAL, SG_ALERT,
|
||||
"Error reading AI aircraft performance database: " << filename.str());
|
||||
return;
|
||||
|
|
|
@ -266,7 +266,7 @@ void FGATCDialog::PopupCallback(int num) {
|
|||
//cout << "TOWER " << endl;
|
||||
//cout << "ident is " << atcptr->get_ident() << endl;
|
||||
atcmentry_vec_type atcmlist = (available_dialog[TOWER])[atcptr->get_ident()];
|
||||
unsigned int size = atcmlist.size();
|
||||
int size = atcmlist.size();
|
||||
if(size && num < size) {
|
||||
//cout << "Doing callback...\n";
|
||||
ATCMenuEntry a = atcmlist[num];
|
||||
|
|
|
@ -55,7 +55,7 @@ void FGSidStar::load(SGPath filename) {
|
|||
string name;
|
||||
try {
|
||||
readProperties(filename.str(), &root);
|
||||
} catch (const sg_exception &e) {
|
||||
} catch (const sg_exception &) {
|
||||
SG_LOG(SG_GENERAL, SG_ALERT,
|
||||
"Error reading AI flight plan: " << filename.str());
|
||||
// cout << path.str() << endl;
|
||||
|
|
|
@ -54,7 +54,7 @@ void XMLLoader::load(FGAirportDynamics* d) {
|
|||
readXML(parkpath.str(), visitor);
|
||||
d->init();
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
catch (const sg_exception &) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -74,7 +74,7 @@ void XMLLoader::load(FGAirportDynamics* d) {
|
|||
readXML(parkpath.str(), visitor);
|
||||
d->init();
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
catch (const sg_exception &) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ void XMLLoader::load(FGRunwayPreference* p) {
|
|||
try {
|
||||
readXML(rwyPrefPath.str(), visitor);
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
catch (const sg_exception &) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -110,7 +110,7 @@ void XMLLoader::load(FGRunwayPreference* p) {
|
|||
try {
|
||||
readXML(rwypath.str(), visitor);
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
catch (const sg_exception &) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ void XMLLoader::load(FGSidStar* p) {
|
|||
//cerr << "Reading SID procedure : " << sidpath.str() << endl;
|
||||
p->load(sidpath);
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
catch (const sg_exception &) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -794,7 +794,7 @@ void FGXMLAutopilot::init() {
|
|||
" details.");
|
||||
exit(-1);
|
||||
}
|
||||
} catch (const sg_exception& exc) {
|
||||
} catch (const sg_exception&) {
|
||||
SG_LOG( SG_ALL, SG_ALERT, "Failed to load autopilot configuration: "
|
||||
<< config.str() );
|
||||
}
|
||||
|
|
|
@ -141,9 +141,9 @@ FGInterpolateEnvironmentCtrl::read_table (const SGPropertyNode * node, vector<bu
|
|||
{
|
||||
double last_altitude_ft = 0.0;
|
||||
double sort_required = false;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < node->nChildren(); i++) {
|
||||
for (i = 0; i < (size_t)node->nChildren(); i++) {
|
||||
const SGPropertyNode * child = node->getChild(i);
|
||||
if ( strcmp(child->getName(), "entry") == 0
|
||||
&& child->getStringValue("elevation-ft", "")[0] != '\0'
|
||||
|
|
|
@ -178,9 +178,6 @@ void uiuc_menu( string aircraft_name )
|
|||
{
|
||||
string aircraft_directory;
|
||||
stack command_list;
|
||||
double token_value;
|
||||
int token_value_recordRate;
|
||||
int token_value_convert1, token_value_convert2, token_value_convert3;
|
||||
|
||||
string linetoken1;
|
||||
string linetoken2;
|
||||
|
|
|
@ -794,7 +794,6 @@ void Rotor::setCyclicail(float lval,float rval)
|
|||
void Rotor::setRotorBalance(float lval)
|
||||
{
|
||||
lval = Math::clamp(lval, -1, 1);
|
||||
int i;
|
||||
_balance2 = lval;
|
||||
}
|
||||
|
||||
|
|
|
@ -1053,8 +1053,9 @@ FGDialog::getKeyCode(const char *str)
|
|||
key = toupper(key);
|
||||
if (mod & CTRL)
|
||||
key = toupper(key) - '@';
|
||||
if (mod & ALT)
|
||||
/* if (mod & ALT)
|
||||
; // Alt not propagated to the gui
|
||||
*/
|
||||
} else {
|
||||
for (char *t = s; *t; t++)
|
||||
*t = tolower(*t);
|
||||
|
|
|
@ -256,12 +256,12 @@ FGInput::doKey (int k, int modifiers, int x, int y)
|
|||
_key_code = k;
|
||||
_key_modifiers = modifiers >> 1;
|
||||
_key_pressed = (modifiers & KEYMOD_RELEASED) == 0;
|
||||
_key_shift = (modifiers & KEYMOD_SHIFT) != 0;
|
||||
_key_ctrl = (modifiers & KEYMOD_CTRL) != 0;
|
||||
_key_alt = (modifiers & KEYMOD_ALT) != 0;
|
||||
_key_meta = (modifiers & KEYMOD_META) != 0;
|
||||
_key_super = (modifiers & KEYMOD_SUPER) != 0;
|
||||
_key_hyper = (modifiers & KEYMOD_HYPER) != 0;
|
||||
_key_shift = getModShift();
|
||||
_key_ctrl = getModCtrl();
|
||||
_key_alt = getModAlt();
|
||||
_key_meta = getModMeta();
|
||||
_key_super = getModSuper();
|
||||
_key_hyper = getModHyper();
|
||||
_key_event->fireValueChanged();
|
||||
if (_key_code < 0)
|
||||
return;
|
||||
|
|
|
@ -392,7 +392,7 @@ void FGElectricalSystem::init () {
|
|||
"details.");
|
||||
exit(-1);
|
||||
}
|
||||
} catch (const sg_exception& exc) {
|
||||
} catch (const sg_exception&) {
|
||||
SG_LOG( SG_ALL, SG_ALERT,
|
||||
"Failed to load electrical system model: "
|
||||
<< config.str() );
|
||||
|
|
|
@ -53,7 +53,7 @@ FGSystemMgr::FGSystemMgr ()
|
|||
" details.");
|
||||
exit(-1);
|
||||
}
|
||||
} catch (const sg_exception& exc) {
|
||||
} catch (const sg_exception&) {
|
||||
SG_LOG( SG_ALL, SG_ALERT, "Failed to load systems system model: "
|
||||
<< config.str() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue