Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2017 13:50:56 -0800
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Andriy Gapon <avg@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r314862 - head/sys/modules/qlxgbe
Message-ID:  <20170308215056.GP1044@FreeBSD.org>
In-Reply-To: <20170308193709.Q2738@besplex.bde.org>
References:  <201703071543.v27FhnoL024242@repo.freebsd.org> <20170307221733.GN1044@FreeBSD.org> <70fcdcf4-cfa5-2382-ea60-55ac1a91e06b@FreeBSD.org> <20170308193709.Q2738@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 08, 2017 at 07:47:13PM +1100, Bruce Evans wrote:
B> > On 08/03/2017 00:17, Gleb Smirnoff wrote:
B> >> On Tue, Mar 07, 2017 at 03:43:49PM +0000, Andriy Gapon wrote:
B> >> A> Author: avg
B> >> A> Date: Tue Mar  7 15:43:49 2017
B> >> A> New Revision: 314862
B> >> A> URL: https://svnweb.freebsd.org/changeset/base/314862
B> >> A>
B> >> A> Log:
B> >> A>   qlxgbe: add GCC_MS_EXTENSIONS to CFLAGS to make old base GCC happy
B> >> A>
B> >> A>   The module uses unnamed structure and union fields and base GCC in
B> >> A>   stable/10 doesn't like it.
B> >> A>   I think that that is a C11 feature, so it is courteous of more modern
B> >> A>   compilers to not complain about it when compiling in C99 mode.
B> >>
B> >> There are a lot of code in kernel, that uses anonymous structs and unions.
B> >> This feature is enabled globally. Why does this module need special treatment?
B> 
B> There is not a lot of such code.  There are a lot of ugly macros like
B> 'define v_rdev v_un.vu_cdev' to avoid having such code since it is
B> unportable.

Bruce, I am sorry, I can't resist from asking that in a straight unpolite way:

Unportable to what? Back to XX century?

-- 
Totus tuus, Glebius.



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