diff --git a/src/Navaids/fixlist.cxx b/src/Navaids/fixlist.cxx index a45bfcf35..058efed17 100644 --- a/src/Navaids/fixlist.cxx +++ b/src/Navaids/fixlist.cxx @@ -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]); diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index 5c1869dc3..ad2998529 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -489,7 +489,7 @@ void NavLoader::loadNav(const SGPath& path, std::size_t bytesReadSoFar, try { vector 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 );