From 1185da02a697085cd8ccae2e0662675bfb8d811a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 22 Jun 2022 18:20:30 +1000 Subject: [PATCH] AP_Airspeed: fix clang++ warnings on static inits these are static variables so don't need zeroing anyway... --- libraries/AP_Airspeed/AP_Airspeed_UAVCAN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Airspeed/AP_Airspeed_UAVCAN.cpp b/libraries/AP_Airspeed/AP_Airspeed_UAVCAN.cpp index ad478718c6..c8e530cd39 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_UAVCAN.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_UAVCAN.cpp @@ -14,7 +14,7 @@ extern const AP_HAL::HAL& hal; // UAVCAN Frontend Registry Binder UC_REGISTRY_BINDER(AirspeedCb, uavcan::equipment::air_data::RawAirData); -AP_Airspeed_UAVCAN::DetectedModules AP_Airspeed_UAVCAN::_detected_modules[] = {0}; +AP_Airspeed_UAVCAN::DetectedModules AP_Airspeed_UAVCAN::_detected_modules[]; HAL_Semaphore AP_Airspeed_UAVCAN::_sem_registry; // constructor