From: torsten Date: Sat, 6 Mar 2010 21:20:21 +0000 (+0000) Subject: one more gcc warning fix: xxx will be initialized after yyy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb81aa9f65d5eb4bb7bd9d8e68ce4f4c38bdc491;p=flightgear.git one more gcc warning fix: xxx will be initialized after yyy --- diff --git a/src/Instrumentation/HUD/HUD_misc.cxx b/src/Instrumentation/HUD/HUD_misc.cxx index 7b084c68b..891101713 100644 --- a/src/Instrumentation/HUD/HUD_misc.cxx +++ b/src/Instrumentation/HUD/HUD_misc.cxx @@ -28,6 +28,9 @@ HUD::AimingReticle::AimingReticle(HUD *hud, const SGPropertyNode *n, float x, float y) : Item(hud, n, x, y), +_active_condition(0), +_tachy_condition(0), +_align_condition(0), _diameter(n->getNode("diameter-input", false)), _pitch(n->getNode("pitch-input", false)), _yaw(n->getNode("yaw-input", false)), @@ -37,14 +40,11 @@ _t0(n->getNode("arc-start-input", false)), _t1(n->getNode("arc-stop-input", false)), _offset_x(n->getNode("offset-x-input", false)), _offset_y(n->getNode("offset-y-input", false)), +_bullet_size(_w / 6.0), +_inner_radius(_w / 2.0), _compression(n->getFloatValue("compression-factor")), _limit_x(n->getFloatValue("limit-x")), -_limit_y(n->getFloatValue("limit-y")), -_active_condition(0), -_tachy_condition(0), -_align_condition(0), -_bullet_size(_w / 6.0), -_inner_radius(_w / 2.0) +_limit_y(n->getFloatValue("limit-y")) { const SGPropertyNode *node = n->getNode("active-condition");