Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2005 09:29:40 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        Sam Leffler <sam@errno.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h
Message-ID:  <20050409072939.GA587@wombat.fafoe.narf.at>
In-Reply-To: <42570A2B.7020300@errno.com>
References:  <200504082137.j38LbfBP082199@repoman.freebsd.org> <42570A2B.7020300@errno.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 08, 2005 at 03:48:11PM -0700, Sam Leffler wrote:
> Stefan Farfeleder wrote:
> >stefanf     2005-04-08 21:37:41 UTC
> >
> >  FreeBSD src repository
> >
> >  Modified files:
> >    sbin/ifconfig        ifconfig.c ifconfig.h 
> >  Log:
> >  ISO C does not allow unnamed union members.
> 
> Not sure what "ISO C" means; were you saying this was using a 
> gcc-specific mechanism?  I thought this was permitted by C99.

I'm afraid you're mistaken.  It's an error in both C standards, C89/90
and C99.  GCC even warns about it if you add -pedantic.

Stefan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050409072939.GA587>