"M. Warner Losh" wrote: > In message: <[EMAIL PROTECTED]> > Peter Wemm <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message