From owner-svn-src-all@FreeBSD.ORG Sun Dec 28 21:09:18 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1691C1065674 for ; Sun, 28 Dec 2008 21:09:18 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 982C08FC13 for ; Sun, 28 Dec 2008 21:09:17 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id CD23E667B1 for ; Sun, 28 Dec 2008 22:09:15 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1000) id 1ED678DE5A; Sun, 28 Dec 2008 22:09:16 +0100 (CET) Date: Sun, 28 Dec 2008 22:09:16 +0100 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Message-ID: <20081228210916.GA13945@britannica.bec.de> References: <200812272048.mBRKmBKo082102@svn.freebsd.org> <20081228045055.GA81182@citylink.fud.org.nz> <20081228223039.cf28e3e2.stas@FreeBSD.org> <4957E8F5.90202@andric.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4957E8F5.90202@andric.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: svn commit: r186529 - head/sys/dev/acpi_support X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 21:09:18 -0000 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