Date: Sun, 28 Dec 2008 22:00:37 +0100 From: Dimitry Andric <dimitry@andric.com> To: Stanislav Sedov <stas@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Andrew Thompson <thompsa@FreeBSD.org> Subject: Re: svn commit: r186529 - head/sys/dev/acpi_support Message-ID: <4957E8F5.90202@andric.com> In-Reply-To: <20081228223039.cf28e3e2.stas@FreeBSD.org> References: <200812272048.mBRKmBKo082102@svn.freebsd.org> <20081228045055.GA81182@citylink.fud.org.nz> <20081228223039.cf28e3e2.stas@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
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...home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4957E8F5.90202>
