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;
//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];
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;
readXML(parkpath.str(), visitor);
d->init();
}
- catch (const sg_exception &e) {
+ catch (const sg_exception &) {
}
}
} else {
readXML(parkpath.str(), visitor);
d->init();
}
- catch (const sg_exception &e) {
+ catch (const sg_exception &) {
}
return;
}
try {
readXML(rwyPrefPath.str(), visitor);
}
- catch (const sg_exception &e) {
+ catch (const sg_exception &) {
}
}
} else {
try {
readXML(rwypath.str(), visitor);
}
- catch (const sg_exception &e) {
+ catch (const sg_exception &) {
}
return;
}
//cerr << "Reading SID procedure : " << sidpath.str() << endl;
p->load(sidpath);
}
- catch (const sg_exception &e) {
+ catch (const sg_exception &) {
}
return;
}
" 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() );
}
{
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'
{
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;
void Rotor::setRotorBalance(float lval)
{
lval = Math::clamp(lval, -1, 1);
- int i;
_balance2 = lval;
}
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);
_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;
"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() );
" 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() );
}