svn commit: r186529 - head/sys/dev/acpi_support
Joerg Sonnenberger
joerg at britannica.bec.de
Sun Dec 28 21:09:18 UTC 2008
On Sun, Dec 28, 2008 at 10:00:37PM +0100, Dimitry Andric wrote:
> On 2008-12-28 20:30, Stanislav Sedov wrote:
> >>> - ACPI_OBJECT acpiarg[0];
> >>> + ACPI_OBJECT acpiarg[1];
> > I wonder how does gcc allowed this. It emits warnings only in
> > pedantic mode which we cannot use to compile kernel with.
>
> Zero-sized arrays are non-standard, but have been allowed by gcc (and
> many other compilers) since a long time, so it is logical that it
> doesn't warn about it by default.
Having no size at all would be standard compliant, e.g. acpiarg[[];
Joreg
More information about the svn-src-all
mailing list