Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drv/ioport/ioport_lpf2: fix GCC 10 error
Fixes the following error: CC ../../lib/pbio/drv/ioport/ioport_lpf2.c ../../lib/pbio/drv/ioport/ioport_lpf2.c: In function 'process_thread_pbdrv_ioport_lpf2_process': ../../lib/pbio/drv/ioport/ioport_lpf2.c:520:74: error: array subscript 0 is outside the bounds of an interior zero-length array 'const pbio_iodev_mode_t[0]' [-Werror=zero-length-bounds] 520 | const lump_mode_flags_t *flags = &info->mode_info[0].flags; | ~~~~~~~~~~~~~~~^~~ In file included from ../../lib/pbio/drv/ioport/ioport_lpf2.c:19: ../../lib/pbio/include/pbio/iodev.h:349:23: note: while referencing 'mode_info' 349 | pbio_iodev_mode_t mode_info[0]; | ^~~~~~~~~ cc1: all warnings being treated as errors Issue: pybricks/support#194
- Loading branch information