bsps/include/grlib/ambapp.h: Fix warning for zero length array use

The use of an array of zero length at the end of a structure needs to
be careful to use RTEMS_ZERO_LENGTH_ARRAY since the accepted syntax
varies across C language versions.
This commit is contained in:
Joel Sherrill
2025-07-04 10:20:17 -05:00
committed by Chris Johns
parent 5fa8c7b52d
commit 75312c1b9b

View File

@@ -36,6 +36,8 @@
#include <stddef.h>
#include <rtems/score/basedefs.h>
/* Include VENDOR and DEVICE definitions */
#include "ambapp_ids.h"
@@ -102,7 +104,7 @@ struct ambapp_dev {
unsigned short device; /* Device ID */
/* Device info (APB/AHB dep. on type) */
struct ambapp_common_info devinfo[0];
struct ambapp_common_info devinfo[RTEMS_ZERO_LENGTH_ARRAY];
};
/* Describes a complete AMBA Core. Each device may consist of 3 interfaces */