From 16ea4f03b6d93f7e0051b890ce05008b1c299aae Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 22 Jun 2022 18:20:30 +1000 Subject: [PATCH] AP_Compass: fix clang++ warnings on static inits these are static variables so don't need zeroing anyway... --- libraries/AP_Compass/AP_Compass_UAVCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass_UAVCAN.cpp b/libraries/AP_Compass/AP_Compass_UAVCAN.cpp index e80f48a75d..892daea168 100644 --- a/libraries/AP_Compass/AP_Compass_UAVCAN.cpp +++ b/libraries/AP_Compass/AP_Compass_UAVCAN.cpp @@ -32,7 +32,7 @@ extern const AP_HAL::HAL& hal; UC_REGISTRY_BINDER(MagCb, uavcan::equipment::ahrs::MagneticFieldStrength); UC_REGISTRY_BINDER(Mag2Cb, uavcan::equipment::ahrs::MagneticFieldStrength2); -AP_Compass_UAVCAN::DetectedModules AP_Compass_UAVCAN::_detected_modules[] = {0}; +AP_Compass_UAVCAN::DetectedModules AP_Compass_UAVCAN::_detected_modules[]; HAL_Semaphore AP_Compass_UAVCAN::_sem_registry; AP_Compass_UAVCAN::AP_Compass_UAVCAN(AP_UAVCAN* ap_uavcan, uint8_t node_id, uint8_t sensor_id, uint32_t devid)