From 1d8cc85cb9bc53f8118f8a5162b9858bf0928880 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 13 Mar 2019 11:42:14 +0100 Subject: [PATCH] AntennaTracker: zero initialize vehicle instead of memsetting it Solve gcc8 warning --- AntennaTracker/AntennaTracker.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/AntennaTracker/AntennaTracker.cpp b/AntennaTracker/AntennaTracker.cpp index 6b17aaeadb..7b1477c950 100644 --- a/AntennaTracker/AntennaTracker.cpp +++ b/AntennaTracker/AntennaTracker.cpp @@ -146,7 +146,6 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); Tracker::Tracker(void) : logger(g.log_bitmask) { - memset(&vehicle, 0, sizeof(vehicle)); } Tracker tracker;