RTEMS | bsps/include/grlib/ambapp.h: Fix warning for zero length array use (!559)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Jul 15 22:46:51 UTC 2025




Gedare Bloom started a new discussion on bsps/include/grlib/ambapp.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_126555

 >  	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];

We have `RTEMS_ZERO_LENGTH_ARRAY` that should be used here instead?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/559#note_126555
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/20250715/6f9a1a5a/attachment-0001.htm>


More information about the bugs mailing list