From owner-svn-src-head@FreeBSD.ORG Sun Dec 28 21:00:40 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C79310656D6; Sun, 28 Dec 2008 21:00:40 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB7B8FC1A; Sun, 28 Dec 2008 21:00:40 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:f53f:ada1:a081:da3b] (unknown [IPv6:2001:7b8:3a7:0:f53f:ada1:a081:da3b]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BB61411F859; Sun, 28 Dec 2008 22:00:38 +0100 (CET) Message-ID: <4957E8F5.90202@andric.com> Date: Sun, 28 Dec 2008 22:00:37 +0100 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1b3pre) Gecko/20081219 Shredder/3.0b2pre MIME-Version: 1.0 To: Stanislav Sedov References: <200812272048.mBRKmBKo082102@svn.freebsd.org> <20081228045055.GA81182@citylink.fud.org.nz> <20081228223039.cf28e3e2.stas@FreeBSD.org> In-Reply-To: <20081228223039.cf28e3e2.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Andrew Thompson Subject: Re: svn commit: r186529 - head/sys/dev/acpi_support X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 21:00:40 -0000 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...