mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 02:03:33 +08:00
stop ignoring Wmissing-field-initializers and fix (#9912)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user