From owner-freebsd-current Thu Jan 28 09:09:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA12216 for freebsd-current-outgoing; Thu, 28 Jan 1999 09:09:39 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA12186 for ; Thu, 28 Jan 1999 09:09:35 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id JAA07304 for ; Thu, 28 Jan 1999 09:09:33 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id JAA11280; Thu, 28 Jan 1999 09:09:33 -0800 (PST) (envelope-from jdp@polstra.com) Date: Thu, 28 Jan 1999 09:09:33 -0800 (PST) Message-Id: <199901281709.JAA11280@vashon.polstra.com> To: current@FreeBSD.ORG Subject: Re: -Wall -Wcast-qual and SYSINIT Newsgroups: polstra.freebsd.current In-Reply-To: <199901280753.XAA98980@apollo.backplane.com> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199901280753.XAA98980@apollo.backplane.com>, Matthew Dillon 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