Subject: Re: __UNCONST(a)
To: Christos Zoulas <christos@zoulas.com>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-userlevel
Date: 06/30/2004 16:44:58
--7zDIAvi/ElPJVd/C
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Jun 29, 2004 at 11:53:25PM -0400, Christos Zoulas wrote:
| I would like to add:
|=20
| /* No intptr_t dependency here */
| #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
|=20
| in <sys/cdefs.h>
|=20
| Any objections?
Is this to work around gcc and/or lint being overly aggressive
in enforcing "const"ness of a type? Or bugs in those tools?
--7zDIAvi/ElPJVd/C
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFA4mFqpBhtmn8zJHIRAkh2AJ0XXLiqtD3AT8ljLflYkzC8zPza7gCgk98t
da7JMliMscRDh6hwK0h1xkY=
=fsHy
-----END PGP SIGNATURE-----
--7zDIAvi/ElPJVd/C--