RTEMS | bsps/include/grlib/ambapp.h: Fix warning for zero length array use (!559)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Thu Jul 10 00:31:25 UTC 2025
Sebastian Huber started a new discussion on bsps/include/grlib/ambapp.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_126267
> unsigned short device; /* Device ID */
>
> /* Device info (APB/AHB dep. on type) */
> - struct ambapp_common_info devinfo[0];
> + __extension__ struct ambapp_common_info devinfo[0];
Does `struct ambapp_common_info devinfo[RTEMS_ZERO_LENGTH_ARRAY];` fix the issue?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_126267
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250710/526765a5/attachment.htm>
More information about the bugs
mailing list