Misc compiler warning fixes.

This commit is contained in:
WrinklyNinja
2014-05-10 16:41:08 +01:00
parent 0efb46f8df
commit 8580bde131
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ unsigned int c_error(const loot::error& e) {
extMessageStr = new char[strlen(e.what()) + 1];
strcpy(extMessageStr, e.what());
}
catch (std::bad_alloc& e) {
catch (std::bad_alloc& /*e*/) {
extMessageStr = NULL;
}
return e.code();
+1 -1
View File
@@ -485,7 +485,7 @@ namespace loot {
if (!loadorder.empty()) {
time_t lastTime, thisTime;
time_t lastTime;
fs::path filepath = DataPath() / *loadorder.begin();
if (!fs::exists(filepath) && fs::exists(filepath.string() + ".ghost"))
filepath += ".ghost";
+1 -1
View File
@@ -46,7 +46,7 @@ namespace loot {
FormID::FormID(const std::string& sourcePlugin, const uint32_t objectID) : plugin(sourcePlugin), id(objectID) {}
FormID::FormID(const std::vector<std::string>& sourcePlugins, const uint32_t formID) {
int index = formID >> 24;
unsigned int index = formID >> 24;
id = formID & ~((uint32_t)index << 24);
if (index >= sourcePlugins.size()) {
+1 -1
View File
@@ -531,7 +531,7 @@ namespace loot {
boost::regex regex;
try {
regex = boost::regex(filename, boost::regex::perl|boost::regex::icase);
} catch (boost::regex_error& e) {
} catch (boost::regex_error& /*e*/) {
BOOST_LOG_TRIVIAL(error) << "Invalid regex string:" << filename;
throw loot::error(loot::error::invalid_args, boost::locale::translate("Invalid regex string:").str() + " " + filename);
}