Subject: Re: toolchain/22118: make won't compile with -Wcast-qual
To: None <M.Drochner@fz-juelich.de>
From: Greg A. Woods <woods@weird.com>
List: tech-toolchain
Date: 07/16/2003 03:03:21
[ On Tuesday, July 15, 2003 at 20:01:46 (+0200), Matthias Drochner wrote: ]
> Subject: Re: toolchain/22118: make won't compile with -Wcast-qual   -Wstrict-prototypes and more
>
> In cases like the iov I'd probably prefer a union of a const and a non-const.

That's called pointer aliasing.  It's not portable nor safe, and it
disables the "const" warnings behind the compiler's back.

-- 
						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>