|
From: Florian K. <fl...@ei...> - 2015-03-12 21:52:14
|
On 12.03.2015 21:43, sv...@va... wrote:
> +struct _VgStack {
> + HChar bytes[0];
> +};
This is not portable, although GCC will allow it.
C says that the number of elements in an array be > 0.
struct _VgStack {
HChar bytes[1];
};
should do the trick.
In case you're tempted to use a flexible array member, you cannot
as a flexible array member must not be the only member in a struct.
Florian
|