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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"