Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 09:09:33 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        current@FreeBSD.ORG
Subject:   Re: -Wall -Wcast-qual and SYSINIT
Message-ID:  <199901281709.JAA11280@vashon.polstra.com>
In-Reply-To: <199901280753.XAA98980@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199901280753.XAA98980@apollo.backplane.com>,
Matthew Dillon  <dillon@apollo.backplane.com> wrote:
> 
>     Unfortunately, GCC isn't smart enough to match the function type
>     to the correct structure - it always stuffs it into the first structure.

Don't blame GCC.  The C standard requires it to behave the way it
does.

Anyway, GCC actually does have an extension that addresses this
problem.  See "Labeled Elements in Initializers" in the info pages.
Note, this extension should NOT be used, in my opinion.

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Nobody ever went broke underestimating the taste of the American public."
                                                            -- H. L. Mencken

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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