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.

Maybe you can try compiling it with gcc 4.3.x; I have received several
"array subscript is above array bounds" warnings using it.  However,
it's GPL3, which might open up several cans of worms...
_______________________________________________
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"

Reply via email to