Fix some warnings reported from msvc
This commit is contained in:
@@ -253,7 +253,7 @@ public:
|
|||||||
// already exists on disk
|
// already exists on disk
|
||||||
parseDirIndex(children);
|
parseDirIndex(children);
|
||||||
std::sort(children.begin(), children.end());
|
std::sort(children.begin(), children.end());
|
||||||
} catch (sg_exception& e) {
|
} catch (sg_exception& ) {
|
||||||
// parsing cache failed
|
// parsing cache failed
|
||||||
children.clear();
|
children.clear();
|
||||||
}
|
}
|
||||||
@@ -775,7 +775,7 @@ HTTPRepository::failure() const
|
|||||||
st.stamp();
|
st.stamp();
|
||||||
_directory->updateChildrenBasedOnHash();
|
_directory->updateChildrenBasedOnHash();
|
||||||
SG_LOG(SG_TERRASYNC, SG_INFO, "after update of:" << _directory->absolutePath() << " child update took:" << st.elapsedMSec());
|
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);
|
_directory->failedToUpdate(AbstractRepository::REPO_ERROR_IO);
|
||||||
}
|
}
|
||||||
} else if (responseCode() == 404) {
|
} else if (responseCode() == 404) {
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ protected:
|
|||||||
try {
|
try {
|
||||||
readProperties(m_buffer.data(), m_buffer.size(), props);
|
readProperties(m_buffer.data(), m_buffer.size(), props);
|
||||||
m_owner->parseProps(props);
|
m_owner->parseProps(props);
|
||||||
} catch (sg_exception& e) {
|
} catch (sg_exception& ) {
|
||||||
SG_LOG(SG_GENERAL, SG_ALERT, "catalog parse failure:" << m_owner->url());
|
SG_LOG(SG_GENERAL, SG_ALERT, "catalog parse failure:" << m_owner->url());
|
||||||
m_owner->refreshComplete(Delegate::FAIL_EXTRACT);
|
m_owner->refreshComplete(Delegate::FAIL_EXTRACT);
|
||||||
return;
|
return;
|
||||||
@@ -207,7 +207,7 @@ CatalogRef Catalog::createFromPath(Root* aRoot, const SGPath& aPath)
|
|||||||
try {
|
try {
|
||||||
props = new SGPropertyNode;
|
props = new SGPropertyNode;
|
||||||
readProperties(xml.str(), props);
|
readProperties(xml.str(), props);
|
||||||
} catch (sg_exception& e) {
|
} catch (sg_exception& ) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ private:
|
|||||||
throw sg_io_exception("failed to go to next file in the archive");
|
throw sg_io_exception("failed to go to next file in the archive");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (sg_exception& e) {
|
} catch (sg_exception& ) {
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ InstallRef Package::existingInstall(const InstallCallback& cb) const
|
|||||||
InstallRef install;
|
InstallRef install;
|
||||||
try {
|
try {
|
||||||
install = m_catalog->root()->existingInstallForPackage(const_cast<Package*>(this));
|
install = m_catalog->root()->existingInstallForPackage(const_cast<Package*>(this));
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& ) {
|
||||||
return InstallRef();
|
return InstallRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user