From 0750d8a6d431e0dbe3d6d38f36092c32b6828dc7 Mon Sep 17 00:00:00 2001 From: torsten Date: Wed, 14 Apr 2010 17:26:45 +0000 Subject: [PATCH] gps warning fix (xxx will be initialized after yyy) --- src/Instrumentation/gps.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index 685754744..1ddb87e08 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -213,6 +213,7 @@ void GPS::Config::bind(GPS* aOwner, SGPropertyNode* aCfg) GPS::GPS ( SGPropertyNode *node) : _selectedCourse(0.0), + _desiredCourse(0.0), _dataValid(false), _lastPosValid(false), _mode("init"), @@ -220,8 +221,7 @@ GPS::GPS ( SGPropertyNode *node) : _num(node->getIntValue("number", 0)), _computeTurnData(false), _anticipateTurn(false), - _inTurn(false), - _desiredCourse(0.0) + _inTurn(false) { string branch = "/instrumentation/" + _name; _gpsNode = fgGetNode(branch.c_str(), _num, true ); -- 2.39.5