]> git.mxchange.org Git - simgear.git/commitdiff
Fix some warnings reported from msvc
authorTorsten Dreyer <torsten@t3r.de>
Mon, 2 May 2016 18:54:28 +0000 (20:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
simgear/io/HTTPRepository.cxx
simgear/package/Catalog.cxx
simgear/package/Install.cxx
simgear/package/Package.cxx

index fe9b1349a5b5e2ce4dcec5f56182e0ec7a8a5e22..a99c36f5530ae23e9bf31c08889fca1ab0ac525e 100644 (file)
@@ -253,7 +253,7 @@ public:
               // already exists on disk
               parseDirIndex(children);
               std::sort(children.begin(), children.end());
-          } catch (sg_exception& e) {
+          } catch (sg_exception& ) {
               // parsing cache failed
               children.clear();
           }
@@ -775,7 +775,7 @@ HTTPRepository::failure() const
                     st.stamp();
                     _directory->updateChildrenBasedOnHash();
                     SG_LOG(SG_TERRASYNC, SG_INFO, "after update of:" << _directory->absolutePath() << " child update took:" << st.elapsedMSec());
-                } catch (sg_exception& e) {
+                } catch (sg_exception& ) {
                     _directory->failedToUpdate(AbstractRepository::REPO_ERROR_IO);
                 }
             } else if (responseCode() == 404) {
index c9c6565836ae0a4d970fb8c76671e8477fbef496..b07e1aec4f97d8fc1bc06b4232b1ef903fffbc2d 100644 (file)
@@ -119,7 +119,7 @@ protected:
         try {
             readProperties(m_buffer.data(), m_buffer.size(), props);
             m_owner->parseProps(props);
-        } catch (sg_exception& e) {
+        } catch (sg_exception& ) {
             SG_LOG(SG_GENERAL, SG_ALERT, "catalog parse failure:" << m_owner->url());
             m_owner->refreshComplete(Delegate::FAIL_EXTRACT);
             return;
@@ -207,7 +207,7 @@ CatalogRef Catalog::createFromPath(Root* aRoot, const SGPath& aPath)
     try {
         props = new SGPropertyNode;
         readProperties(xml.str(), props);
-    } catch (sg_exception& e) {
+    } catch (sg_exception& ) {
         return NULL;
     }
 
index ae6ccb5bd60e2d670a64306d497a0e1027c95f82..9b71d9f0f020a922e0589809f1e7f9485ba775ba 100644 (file)
@@ -273,7 +273,7 @@ private:
                     throw sg_io_exception("failed to go to next file in the archive");
                 }
             }
-        } catch (sg_exception& e) {
+        } catch (sg_exception& ) {
             result = false;
         }
 
index 393e1298b13f0e9dfc5fb3c37117f30d5e998be9..c8848d687d015e838072c2784c4008cbccdd23c9 100644 (file)
@@ -142,7 +142,7 @@ InstallRef Package::existingInstall(const InstallCallback& cb) const
     InstallRef install;
     try {
         install = m_catalog->root()->existingInstallForPackage(const_cast<Package*>(this));
-    } catch (std::exception& e) {
+    } catch (std::exception& ) {
         return InstallRef();
     }