From b11cd3b69d8f28525552adfec54f1661b6ce50d8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 22 Jun 2022 18:20:30 +1000 Subject: [PATCH] AP_Baro: fix clang++ warnings on static inits these are static variables so don't need zeroing anyway... --- libraries/AP_Baro/AP_Baro_UAVCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Baro/AP_Baro_UAVCAN.cpp b/libraries/AP_Baro/AP_Baro_UAVCAN.cpp index 94e52a0c9f..0c7c46e5cc 100644 --- a/libraries/AP_Baro/AP_Baro_UAVCAN.cpp +++ b/libraries/AP_Baro/AP_Baro_UAVCAN.cpp @@ -16,7 +16,7 @@ extern const AP_HAL::HAL& hal; UC_REGISTRY_BINDER(PressureCb, uavcan::equipment::air_data::StaticPressure); UC_REGISTRY_BINDER(TemperatureCb, uavcan::equipment::air_data::StaticTemperature); -AP_Baro_UAVCAN::DetectedModules AP_Baro_UAVCAN::_detected_modules[] = {0}; +AP_Baro_UAVCAN::DetectedModules AP_Baro_UAVCAN::_detected_modules[]; HAL_Semaphore AP_Baro_UAVCAN::_sem_registry; /*