Suppress warnings
This commit is contained in:
parent
6079ff58fd
commit
00d7c1865f
1 changed files with 5 additions and 5 deletions
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
FGGeneric::FGGeneric(vector<string> tokens) : exitOnError(false)
|
FGGeneric::FGGeneric(vector<string> tokens) : exitOnError(false)
|
||||||
{
|
{
|
||||||
int configToken;
|
size_t configToken;
|
||||||
if (tokens[1] == "socket") {
|
if (tokens[1] == "socket") {
|
||||||
configToken = 7;
|
configToken = 7;
|
||||||
} else if (tokens[1] == "file") {
|
} else if (tokens[1] == "file") {
|
||||||
|
@ -72,7 +72,7 @@ FGGeneric::FGGeneric(vector<string> tokens) : exitOnError(false)
|
||||||
SGPropertyNode root;
|
SGPropertyNode root;
|
||||||
try {
|
try {
|
||||||
readProperties(path.str(), &root);
|
readProperties(path.str(), &root);
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT,
|
SG_LOG(SG_GENERAL, SG_ALERT,
|
||||||
"Unable to load the protocol configuration file");
|
"Unable to load the protocol configuration file");
|
||||||
return;
|
return;
|
||||||
|
@ -101,7 +101,6 @@ FGGeneric::~FGGeneric() {
|
||||||
// generate the message
|
// generate the message
|
||||||
bool FGGeneric::gen_message_binary() {
|
bool FGGeneric::gen_message_binary() {
|
||||||
string generic_sentence;
|
string generic_sentence;
|
||||||
char tmp[255];
|
|
||||||
length = 0;
|
length = 0;
|
||||||
|
|
||||||
double val;
|
double val;
|
||||||
|
@ -477,9 +476,10 @@ bool FGGeneric::process() {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
error_out:
|
error_out:
|
||||||
if (exitOnError)
|
if (exitOnError) {
|
||||||
fgExit(1);
|
fgExit(1);
|
||||||
else
|
return true; // should not get there, but please the compiler
|
||||||
|
} else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue