From 68e003fd7433f4f7af4f531057d64f2b5f8aac03 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 21 Sep 2024 15:21:57 +1000 Subject: [PATCH] AP_Baro: re-order initialiser lines so -Werror=reorder will work --- libraries/AP_Baro/AP_Baro_SITL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_SITL.cpp b/libraries/AP_Baro/AP_Baro_SITL.cpp index 861674360e..cd914632a3 100644 --- a/libraries/AP_Baro/AP_Baro_SITL.cpp +++ b/libraries/AP_Baro/AP_Baro_SITL.cpp @@ -11,9 +11,9 @@ extern const AP_HAL::HAL& hal; constructor - registers instance at top Baro driver */ AP_Baro_SITL::AP_Baro_SITL(AP_Baro &baro) : + AP_Baro_Backend(baro), _sitl(AP::sitl()), - _has_sample(false), - AP_Baro_Backend(baro) + _has_sample(false) { if (_sitl != nullptr) { _instance = _frontend.register_sensor();