From owner-freebsd-current Thu Jan 28 09:28:44 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15082 for freebsd-current-outgoing; Thu, 28 Jan 1999 09:28:44 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA15077 for ; Thu, 28 Jan 1999 09:28:42 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id JAA09568; Thu, 28 Jan 1999 09:28:38 -0800 (PST) (envelope-from dillon) Date: Thu, 28 Jan 1999 09:28:38 -0800 (PST) From: Matthew Dillon Message-Id: <199901281728.JAA09568@apollo.backplane.com> To: John Polstra Cc: current@FreeBSD.ORG Subject: Re: -Wall -Wcast-qual and SYSINIT References: <199901281709.JAA11280@vashon.polstra.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :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 I'm going to clarify the situation by comitting a separation of SYSINIT to SYSINIT ( for void * stuff ) and C_SYSINIT ( for const void * stuff ). However, they will use the same structure and thus will not address the warning at all. This is simply a clarification of the problem. This is in sys/kernel.h, of course. The auxillary macros, such as in sys/vnode.h, simply use the 'correct' *SYSINIT macro. What we need is a solution for C_SYSINIT that allows the const void * callback and data case through without warning, but does not allow the void * callback and data case. Just as the current SYSINIT case allows the void * callback/data case without warning but complaints on const void * callback/data. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message