From 6529234abe31539d37cb6fa1edabf7267af1dcdf Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Mon, 26 Apr 2021 21:01:49 +0100 Subject: [PATCH] Fix compiler warnings --- src/Main/ErrorReporter.cxx | 2 +- src/Main/positioninit.cxx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Main/ErrorReporter.cxx b/src/Main/ErrorReporter.cxx index c0864dcef..efda5e55f 100644 --- a/src/Main/ErrorReporter.cxx +++ b/src/Main/ErrorReporter.cxx @@ -233,7 +233,7 @@ public: using AggregateErrors = std::vector; AggregateErrors _aggregated; - int _activeReportIndex = -1; + long unsigned int _activeReportIndex = -1; string_list _significantProperties; ///< properties we want to include in reports, for debugging /** diff --git a/src/Main/positioninit.cxx b/src/Main/positioninit.cxx index 0bec633c0..903fc0ede 100644 --- a/src/Main/positioninit.cxx +++ b/src/Main/positioninit.cxx @@ -366,8 +366,6 @@ static InitPosResult setInitialPosFromCarrier( const string& carrier ) { std::string cpos = simgear::strutils::lowercase(carrierpos); - const bool inair = (cpos == "flols") || (cpos == "abeam"); - if (cpos == "flols" || cpos == "abeam") fgSetInt("/sim/presets/carrier-course", 3);// base=1, launch=2, recovery=3 else if (parkpos.find("cat") != std::string::npos)