Re: [PATCH] score: Use flexible-array member for C99 and later

2020-08-03 Thread Sebastian Huber
On 03/08/2020 14:42, Joel Sherrill wrote: On Mon, Aug 3, 2020 at 3:45 AM Sebastian Huber > wrote: This addresses compiler warnings like this: warning: array subscript 0 is outside the bounds of an interior zero-length array 'abc[0]' [-

Re: [PATCH] score: Use flexible-array member for C99 and later

2020-08-03 Thread Joel Sherrill
On Mon, Aug 3, 2020 at 3:45 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > This addresses compiler warnings like this: > > warning: array subscript 0 is outside the bounds of an interior > zero-length array 'abc[0]' [-Wzero-length-bounds] > --- > cpukit/include/rtems/score/base

[PATCH] score: Use flexible-array member for C99 and later

2020-08-03 Thread Sebastian Huber
This addresses compiler warnings like this: warning: array subscript 0 is outside the bounds of an interior zero-length array 'abc[0]' [-Wzero-length-bounds] --- cpukit/include/rtems/score/basedefs.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpukit/include/rtems/sco