Fix warnings about unreferenced local variables
Warnings seen on Jenkins with Visual Studio.
This commit is contained in:
parent
b0a831e667
commit
df2a98d245
2 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ void FixesLoader::loadFixes(const SGPath& path, std::size_t bytesReadSoFar,
|
|||
try {
|
||||
lat = std::stod(fields[0]);
|
||||
lon = std::stod(fields[1]);
|
||||
} catch (const std::exception& e) {
|
||||
} catch (const std::exception&) {
|
||||
SG_LOG(SG_NAVAID, SG_WARN, utf8path << ": malformed line #" <<
|
||||
lineNumber << ": error parsing coordinates: " << fields[0] <<
|
||||
" " << fields[1]);
|
||||
|
|
|
@ -489,7 +489,7 @@ void NavLoader::loadNav(const SGPath& path, std::size_t bytesReadSoFar,
|
|||
try {
|
||||
vector<string> fields(simgear::strutils::split(line, 0, 1));
|
||||
version = std::stoul(fields[0]);
|
||||
} catch (const std::logic_error& exc) {
|
||||
} catch (const std::logic_error&) {
|
||||
std::string errMsg = utf8Path + ": unable to parse version from header";
|
||||
std::string strippedLine = simgear::strutils::stripTrailingNewlines(line);
|
||||
SG_LOG(SG_NAVAID, SG_ALERT, errMsg << ": " << strippedLine );
|
||||
|
|
Loading…
Reference in a new issue