From 2fc8a4bb4b045682112dbfc8dba84dc2746e5e39 Mon Sep 17 00:00:00 2001 From: fredb Date: Mon, 21 Aug 2006 07:41:23 +0000 Subject: [PATCH] Remove compilation warnings --- src/Main/options.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index fe4d35ad1..8ed6affd8 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1624,7 +1624,7 @@ fgUsage (bool verbose) try { fgLoadProps("options.xml", &options_root); - } catch (const sg_exception &ex) { + } catch (const sg_exception &) { cout << "Unable to read the help file." << endl; cout << "Make sure the file options.xml is located in the FlightGear base directory," << endl; cout << "and the location of the base directory is specified by setting $FG_ROOT or" << endl; @@ -1656,7 +1656,7 @@ fgUsage (bool verbose) SGPropertyNode *short_name = option[k]->getNode("short"); SGPropertyNode *key = option[k]->getNode("key"); SGPropertyNode *arg = option[k]->getNode("arg"); - bool brief = option[k]->getNode("brief"); + bool brief = option[k]->getNode("brief") != 0; if ((brief || verbose) && name) { string tmp = name->getStringValue(); -- 2.39.5