From ef96808a1821a622f90cede7238c97e4ab6270d9 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sun, 4 Jul 2021 12:25:34 +0100 Subject: [PATCH] src/Main/ErrorReporter.cxx: fixed couple of warnings. --- src/Main/ErrorReporter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/ErrorReporter.cxx b/src/Main/ErrorReporter.cxx index cdfdf1839..f0c3db3c5 100644 --- a/src/Main/ErrorReporter.cxx +++ b/src/Main/ErrorReporter.cxx @@ -256,7 +256,7 @@ public: void collectError(simgear::LoadFailure type, simgear::ErrorCode code, const std::string& details, const sg_location& location) { - ErrorOcurrence occurrence{code, type, details, location, time(nullptr)}; + ErrorOcurrence occurrence{code, type, details, location, time(nullptr), string_list(), ErrorContext()}; // snapshot the top of the context stacks into our occurence data for (const auto& c : thread_errorContextStack) { @@ -366,7 +366,7 @@ public: assert(it != _aggregated.end()); _activeReportIndex = static_cast(std::distance(_aggregated.begin(), it)); _displayNode->setBoolValue("index", _activeReportIndex); - _displayNode->setBoolValue("have-next", _activeReportIndex < (_aggregated.size() - 1)); + _displayNode->setBoolValue("have-next", _activeReportIndex < (int) _aggregated.size() - 1); _displayNode->setBoolValue("have-previous", _activeReportIndex > 0); }