From 2bbf1a63a7a02ef5a6e642e72593cef2c43fa1d8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Sep 2024 22:20:44 +1000 Subject: [PATCH] ArduPlane: re-order initialiser lines so -Werror=reorder will work --- ArduPlane/Parameters.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index bfb4f89264..d643d8b013 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -1294,12 +1294,12 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { ParametersG2::ParametersG2(void) : unused_integer{1} -#if HAL_SOARING_ENABLED - ,soaring_controller(plane.TECS_controller, plane.aparm) -#endif #if HAL_BUTTON_ENABLED ,button_ptr(&plane.button) #endif +#if HAL_SOARING_ENABLED + ,soaring_controller(plane.TECS_controller, plane.aparm) +#endif { AP_Param::setup_object_defaults(this, var_info); }