Skip to content
Snippets Groups Projects
Commit 407b403e authored by Julien Lecoeur's avatar Julien Lecoeur Committed by Julian Oes
Browse files

Fix -Werror=maybe-uninitialized on GCC7

parent 06c6a0cd
No related branches found
No related tags found
No related merge requests found
......@@ -462,7 +462,7 @@ calibrate_return do_accel_calibration_measurements(orb_advert_t *mavlink_log_pub
worker_data.subs[i] = -1;
}
uint64_t timestamps[max_accel_sens];
uint64_t timestamps[max_accel_sens] = {};
// We should not try to subscribe if the topic doesn't actually exist and can be counted.
const unsigned orb_accel_count = orb_group_count(ORB_ID(sensor_accel));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment