From 4852562ec7c4e6a788eeceb879aafa9eec4536fc Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Tue, 30 Oct 2018 10:16:50 -0700 Subject: [PATCH] AP_AHRS: Suppress clearing non-trival type warning --- libraries/AP_AHRS/AP_AHRS_DCM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_AHRS/AP_AHRS_DCM.cpp b/libraries/AP_AHRS/AP_AHRS_DCM.cpp index 33343f416f..c75c87bf25 100644 --- a/libraries/AP_AHRS/AP_AHRS_DCM.cpp +++ b/libraries/AP_AHRS/AP_AHRS_DCM.cpp @@ -73,7 +73,7 @@ AP_AHRS_DCM::update(bool skip_ins_update) // otherwise we may move too far. This happens when arming motors // in ArduCopter if (delta_t > 0.2f) { - memset(&_ra_sum[0], 0, sizeof(_ra_sum)); + memset((void *)&_ra_sum[0], 0, sizeof(_ra_sum)); _ra_deltat = 0; return; } @@ -890,7 +890,7 @@ AP_AHRS_DCM::drift_correction(float deltat) } // zero our accumulator ready for the next GPS step - memset(&_ra_sum[0], 0, sizeof(_ra_sum)); + memset((void *)&_ra_sum[0], 0, sizeof(_ra_sum)); _ra_deltat = 0; _ra_sum_start = last_correction_time;