This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5089: -Wold-style-cast warns about cast to void
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: jturner <jturner at mail dot alum dot rpi dot edu>
- Cc: gcc-prs <gcc-prs at gcc dot gnu dot org>, llib <llib at computer dot org>, nathan <nathan at gcc dot gnu dot org>, gcc-bugs <gcc-bugs at gcc dot gnu dot org>, nobody <nobody at gcc dot gnu dot org>, gcc-gnats <gcc-gnats at gcc dot gnu dot org>
- Date: Sat, 29 Dec 2001 15:04:14 +0000
- Subject: Re: c++/5089: -Wold-style-cast warns about cast to void
- Organization: Codesourcery LLC
- References: <200112290910.AA66781444@mail.alum.rpi.edu>
Jeffrey Turner wrote:
>
> I don't see this as a problem. It is what the warning says.
> You should use the ever dangerous <reinterpret_cast> instead.
reinterpret_cast<void>(whatever)
is invalid.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org