Date: Thu, 2 Jun 2005 09:24:28 +0200 From: Stefan Farfeleder <stefan@fafoe.narf.at> To: Bruce Evans <bde@zeta.org.au> Cc: delphij@delphij.net, Harti Brandt <harti@freebsd.org>, freebsd-arch@freebsd.org Subject: Re: [PATCH RFC] Add a macro for null mount options to sbin/mount* Message-ID: <20050602072423.GK95633@wombat.fafoe.narf.at> In-Reply-To: <20050602114859.C98072@delplex.bde.org> References: <1117613456.771.16.camel@spirit> <20050601150344.GA39784@dragon.NUXI.org> <20050601170858.V51549@beagle.kn.op.dlr.de> <20050602114859.C98072@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050602072423.GK95633>