AP_Compass: fix clang++ warnings on static inits

these are static variables so don't need zeroing anyway...
This commit is contained in:
Peter Barker 2022-06-22 18:20:30 +10:00 committed by Andrew Tridgell
parent b11cd3b69d
commit 16ea4f03b6
1 changed files with 1 additions and 1 deletions

View File

@ -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)