From 68124ca36d668a33d9e849dd0cd57ce9fa8476f2 Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 1 Jun 2008 14:59:20 +0000 Subject: [PATCH] Remove unused variables --- src/AIModel/AIManager.cxx | 2 +- src/AIModel/submodel.cxx | 4 ++-- src/Instrumentation/instrument_mgr.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index bc56af32f..01bef48f2 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -335,7 +335,7 @@ FGAIManager::loadScenarioFile(const std::string& filename) SGPropertyNode_ptr root = new SGPropertyNode; readProperties(path.str(), root); return root; - } catch (const sg_exception &e) { + } catch (const sg_exception &) { SG_LOG(SG_GENERAL, SG_DEBUG, "Incorrect path specified for AI " "scenario: \"" << path.str() << "\""); return 0; diff --git a/src/AIModel/submodel.cxx b/src/AIModel/submodel.cxx index 774820dc8..af67c1d5a 100644 --- a/src/AIModel/submodel.cxx +++ b/src/AIModel/submodel.cxx @@ -558,7 +558,7 @@ void FGSubmodelMgr::setData(int id, string& path, bool serviceable) SG_LOG(SG_GENERAL, SG_DEBUG, "Submodels: Trying to read AI submodels file: " << config.str()); readProperties(config.str(), &root); - } catch (const sg_exception &e) { + } catch (const sg_exception &) { SG_LOG(SG_GENERAL, SG_DEBUG, "Submodels: Unable to read AI submodels file: " << config.str()); return; @@ -663,7 +663,7 @@ void FGSubmodelMgr::setSubData(int id, string& path, bool serviceable) "Submodels: Trying to read AI submodels file: " << config.str()); readProperties(config.str(), &root); - } catch (const sg_exception &e) { + } catch (const sg_exception &) { SG_LOG(SG_GENERAL, SG_DEBUG, "Submodels: Unable to read AI submodels file: " << config.str()); return; diff --git a/src/Instrumentation/instrument_mgr.cxx b/src/Instrumentation/instrument_mgr.cxx index 99b8ddc12..da82cce95 100644 --- a/src/Instrumentation/instrument_mgr.cxx +++ b/src/Instrumentation/instrument_mgr.cxx @@ -74,7 +74,7 @@ FGInstrumentMgr::FGInstrumentMgr () "Detected an internal inconsistency in the instrumentation\n" "system specification file. See earlier errors for details.")); } - } catch (const sg_exception& exc) { + } catch (const sg_exception&) { SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: " << config.str() ); } -- 2.39.5