RTEMS | bsps/include/grlib/ambapp.h: Fix warning for zero length array use (!559)
Joel Sherrill (@joel)
gitlab at rtems.org
Mon Jul 28 19:01:51 UTC 2025
Joel Sherrill commented on a discussion on bsps/include/grlib/ambapp.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_127717
> 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];
Using RTEMS_ZERO_LENGTH_ARRAY also fixed this. Resolving.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_127717
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/20250728/dafefce7/attachment.htm>
More information about the bugs
mailing list