From: Torsten Dreyer Date: Mon, 2 May 2016 18:54:28 +0000 (+0200) Subject: Fix some warnings reported from msvc X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c1fbd558b355cbe9f8902962cbeb492915236f3;p=simgear.git Fix some warnings reported from msvc --- diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index fe9b1349..a99c36f5 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -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) { diff --git a/simgear/package/Catalog.cxx b/simgear/package/Catalog.cxx index c9c65658..b07e1aec 100644 --- a/simgear/package/Catalog.cxx +++ b/simgear/package/Catalog.cxx @@ -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; } diff --git a/simgear/package/Install.cxx b/simgear/package/Install.cxx index ae6ccb5b..9b71d9f0 100644 --- a/simgear/package/Install.cxx +++ b/simgear/package/Install.cxx @@ -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; } diff --git a/simgear/package/Package.cxx b/simgear/package/Package.cxx index 393e1298..c8848d68 100644 --- a/simgear/package/Package.cxx +++ b/simgear/package/Package.cxx @@ -142,7 +142,7 @@ InstallRef Package::existingInstall(const InstallCallback& cb) const InstallRef install; try { install = m_catalog->root()->existingInstallForPackage(const_cast(this)); - } catch (std::exception& e) { + } catch (std::exception& ) { return InstallRef(); }