AP_GPS: Suppress clearing non-trival type warning

This commit is contained in:
Michael du Breuil 2018-10-30 10:25:35 -07:00 committed by WickedShell
parent 25ef5fed82
commit d6944510da

View File

@ -611,7 +611,7 @@ void AP_GPS::update_instance(uint8_t instance)
bool data_should_be_logged = false;
if (!result) {
if (tnow - timing[instance].last_message_time_ms > GPS_TIMEOUT_MS) {
memset(&state[instance], 0, sizeof(state[instance]));
memset((void *)&state[instance], 0, sizeof(state[instance]));
state[instance].instance = instance;
state[instance].hdop = GPS_UNKNOWN_DOP;
state[instance].vdop = GPS_UNKNOWN_DOP;