FGGeneric::FGGeneric(vector<string> tokens) : exitOnError(false)
{
- int configToken;
+ size_t configToken;
if (tokens[1] == "socket") {
configToken = 7;
} else if (tokens[1] == "file") {
SGPropertyNode root;
try {
readProperties(path.str(), &root);
- } catch (const sg_exception &e) {
+ } catch (const sg_exception &) {
SG_LOG(SG_GENERAL, SG_ALERT,
"Unable to load the protocol configuration file");
return;
// generate the message
bool FGGeneric::gen_message_binary() {
string generic_sentence;
- char tmp[255];
length = 0;
double val;
}
return true;
error_out:
- if (exitOnError)
+ if (exitOnError) {
fgExit(1);
- else
+ return true; // should not get there, but please the compiler
+ } else
return false;
}