From a0978d9d0ab02d8abf54bca98e6998fb18dd7074 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Sep 2024 22:20:44 +1000 Subject: [PATCH] AR_WPNav: re-order initialiser lines so -Werror=reorder will work --- libraries/AR_WPNav/AR_WPNav.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AR_WPNav/AR_WPNav.cpp b/libraries/AR_WPNav/AR_WPNav.cpp index 095105b07c..89aa01d1bb 100644 --- a/libraries/AR_WPNav/AR_WPNav.cpp +++ b/libraries/AR_WPNav/AR_WPNav.cpp @@ -88,9 +88,9 @@ const AP_Param::GroupInfo AR_WPNav::var_info[] = { }; AR_WPNav::AR_WPNav(AR_AttitudeControl& atc, AR_PosControl &pos_control) : + _pivot(atc), _atc(atc), - _pos_control(pos_control), - _pivot(atc) + _pos_control(pos_control) { AP_Param::setup_object_defaults(this, var_info); }