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 {
|
try {
|
||||||
lat = std::stod(fields[0]);
|
lat = std::stod(fields[0]);
|
||||||
lon = std::stod(fields[1]);
|
lon = std::stod(fields[1]);
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception&) {
|
||||||
SG_LOG(SG_NAVAID, SG_WARN, utf8path << ": malformed line #" <<
|
SG_LOG(SG_NAVAID, SG_WARN, utf8path << ": malformed line #" <<
|
||||||
lineNumber << ": error parsing coordinates: " << fields[0] <<
|
lineNumber << ": error parsing coordinates: " << fields[0] <<
|
||||||
" " << fields[1]);
|
" " << fields[1]);
|
||||||
|
|
|
@ -489,7 +489,7 @@ void NavLoader::loadNav(const SGPath& path, std::size_t bytesReadSoFar,
|
||||||
try {
|
try {
|
||||||
vector<string> fields(simgear::strutils::split(line, 0, 1));
|
vector<string> fields(simgear::strutils::split(line, 0, 1));
|
||||||
version = std::stoul(fields[0]);
|
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 errMsg = utf8Path + ": unable to parse version from header";
|
||||||
std::string strippedLine = simgear::strutils::stripTrailingNewlines(line);
|
std::string strippedLine = simgear::strutils::stripTrailingNewlines(line);
|
||||||
SG_LOG(SG_NAVAID, SG_ALERT, errMsg << ": " << strippedLine );
|
SG_LOG(SG_NAVAID, SG_ALERT, errMsg << ": " << strippedLine );
|
||||||
|
|
Loading…
Reference in a new issue