From owner-freebsd-arch@FreeBSD.ORG Thu Jun 2 07:24:54 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C673816A41C; Thu, 2 Jun 2005 07:24:54 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from fafoe.narf.at (chello213047085026.6.14.vie.surfer.at [213.47.85.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 437A143D5E; Thu, 2 Jun 2005 07:24:54 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.1.42]) by fafoe.narf.at (Postfix) with ESMTP id 6A9453FA7; Thu, 2 Jun 2005 09:24:42 +0200 (CEST) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 0ABB814A; Thu, 2 Jun 2005 09:24:28 +0200 (CEST) Date: Thu, 2 Jun 2005 09:24:28 +0200 From: Stefan Farfeleder To: Bruce Evans Message-ID: <20050602072423.GK95633@wombat.fafoe.narf.at> References: <1117613456.771.16.camel@spirit> <20050601150344.GA39784@dragon.NUXI.org> <20050601170858.V51549@beagle.kn.op.dlr.de> <20050602114859.C98072@delplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050602114859.C98072@delplex.bde.org> User-Agent: Mutt/1.5.9i Cc: delphij@delphij.net, Harti Brandt , freebsd-arch@freebsd.org Subject: Re: [PATCH RFC] Add a macro for null mount options to sbin/mount* X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 07:24:54 -0000 On Thu, Jun 02, 2005 at 12:06:07PM +1000, Bruce Evans wrote: > It would be a compiler bug to complain about missing initializaters for > trailing fields -- consider explicitly initalizing all the data in > "struct foo { char *p; int n[1024 * 1024]; }". Here the field holding > the NULL is the only one that is used. The definition of the terminator > would only need to change if this field is moved. Seconded, however GCC does exactly that with -W (now -Wextra) which we happen to use when ${WARNS} >= 3. Stefan