From 3d4b57cd4a8304fd797d72ca953eb30d10024c2b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 22 Sep 2024 10:37:45 +1000 Subject: [PATCH] AP_HAL_QURT: re-order initialiser lines so -Werror=reorder will work --- libraries/AP_HAL_QURT/DeviceBus.cpp | 3 ++- libraries/AP_HAL_QURT/I2CDevice.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL_QURT/DeviceBus.cpp b/libraries/AP_HAL_QURT/DeviceBus.cpp index c361fdaf84..1e90978b32 100644 --- a/libraries/AP_HAL_QURT/DeviceBus.cpp +++ b/libraries/AP_HAL_QURT/DeviceBus.cpp @@ -27,7 +27,8 @@ using namespace QURT; extern const AP_HAL::HAL& hal; DeviceBus::DeviceBus(AP_HAL::Scheduler::priority_base _thread_priority) : - thread_priority(_thread_priority), semaphore() + semaphore(), + thread_priority(_thread_priority) { } diff --git a/libraries/AP_HAL_QURT/I2CDevice.cpp b/libraries/AP_HAL_QURT/I2CDevice.cpp index 1da0b004f6..0d5317f3f2 100644 --- a/libraries/AP_HAL_QURT/I2CDevice.cpp +++ b/libraries/AP_HAL_QURT/I2CDevice.cpp @@ -41,8 +41,8 @@ I2CDeviceManager::I2CDeviceManager(void) } I2CDevice::I2CDevice(uint8_t busnum, uint8_t address, uint32_t bus_clock, bool use_smbus, uint32_t timeout_ms) : - _address(address), - bus(I2CDeviceManager::businfo[busnum]) + bus(I2CDeviceManager::businfo[busnum]), + _address(address) { if (busnum >= ARRAY_SIZE(i2c_bus_ids)) { bus.fd = -1;