From owner-freebsd-current Mon Feb 25 22:37:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 1D65537B436 for ; Mon, 25 Feb 2002 22:37:41 -0800 (PST) Received: from peter3.wemm.org ([12.232.27.13]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020226063740.RNIO2626.rwcrmhc51.attbi.com@peter3.wemm.org> for ; Tue, 26 Feb 2002 06:37:40 +0000 Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id g1Q6bcs66015 for ; Mon, 25 Feb 2002 22:37:38 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id ED3953BAD; Mon, 25 Feb 2002 22:37:37 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "M. Warner Losh" Cc: current@FreeBSD.ORG Subject: Re: HEADS UP: cvs commit: src/sys/conf kern.pre.mk (fwd) In-Reply-To: <20020225.215923.28857552.imp@village.org> Date: Mon, 25 Feb 2002 22:37:37 -0800 From: Peter Wemm Message-Id: <20020226063737.ED3953BAD@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > In message: <20020226014624.8D6A03BAC@overcee.wemm.org> > Peter Wemm writes: > : There are a couple of offending files in the kernel still, and some > : drivers. The things people are most likely to run into are: usb, inet6, > : and some drivers (twe, asr etc). > > I've fixed a few of the low hanging fruit, but I don't know how to get > rid of warnings like: > > const char *foo = "blah"; > char *baz = foo; > > when I know they are safe. char *baz = (char *)(uintptr_t)foo; ... will work, but isn't exactly pretty. I vaguely recall being told that it should be cast to void * first.. ie: char *baz = (char *)(uintptr_t)(const void *)foo; > Warner > Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message