Xiang Xiao
1e696425fd
lpc43xx/usb: Fix gcc13.2 compiler error
Error: arch/arm/src/common/arm_internal.h:140:25: error: array subscript 0 is outside array bounds of 'volatile uint32_t[0]' {aka 'volatile long unsigned int[]'} [-Werror=array-bounds=]
140 | #define getreg32(a) (*(volatile uint32_t *)(a))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
chip/lpc43_usb0dev.c:347:34: note: in expansion of macro 'getreg32'
347 | # define lpc43_getreg(addr) getreg32(addr)
| ^~~~~~~~
chip/lpc43_usb0dev.c:2605:15: note: in expansion of macro 'lpc43_getreg'
2605 | return (int)lpc43_getreg(LPC43_USBDEV_FRINDEX_OFFSET);
| ^~~~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-19 08:36:49 +08:00
..
2023-12-14 20:02:52 -08:00
2023-12-19 08:36:49 +08:00
2023-12-11 08:43:26 -08:00