stop ignoring Wmissing-field-initializers and fix (#9912)

This commit is contained in:
Daniel Agar
2018-07-22 12:45:52 -04:00
committed by GitHub
parent fc65939f0e
commit b1d3bb0403
21 changed files with 271 additions and 423 deletions
@@ -88,10 +88,11 @@ int uuv_example_app_main(int argc, char *argv[])
orb_advert_t act_pub = orb_advertise(ORB_ID(actuator_controls_0), &act);
/* one could wait for multiple topics with this technique, just using one here */
px4_pollfd_struct_t fds[] = {
{ .fd = sensor_sub_fd, .events = POLLIN },
{ .fd = vehicle_attitude_sub_fd, .events = POLLIN },
};
px4_pollfd_struct_t fds[2] = {};
fds[0].fd = sensor_sub_fd;
fds[0].events = POLLIN;
fds[1].fd = vehicle_attitude_sub_fd;
fds[1].events = POLLIN;
int error_counter = 0;