c++/5089: -Wold-style-cast warns about cast to void
Jeffrey Turner
jturner@mail.alum.rpi.edu
Sat Dec 29 05:56:00 GMT 2001
The following reply was made to PR c++/5089; it has been noted by GNATS.
From: "Jeffrey Turner" <jturner@mail.alum.rpi.edu>
To: <gcc-prs@gcc.gnu.org>,
<llib@computer.org>,
<nathan@gcc.gnu.org>,
<gcc-bugs@gcc.gnu.org>,
<nobody@gcc.gnu.org>,
<gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: c++/5089: -Wold-style-cast warns about cast to void
Date: Sat, 29 Dec 2001 09:10:53 -0500
I don't see this as a problem. It is what the warning says.
You should use the ever dangerous <reinterpret_cast> instead.
--Jeff Turner
Who put the Sam in the "'Sama Laden Ding-Dong"?
---------- Original Message ----------------------------------
From: nathan@gcc.gnu.org
Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,llib@computer.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Date: 18 Dec 2001 22:23:40 -0000
>Synopsis: -Wold-style-cast warns about cast to void
>
>State-Changed-From-To: open->analyzed
>State-Changed-By: nathan
>State-Changed-When: Tue Dec 18 14:23:40 2001
>State-Changed-Why:
> I think we shouldn't warn for (void)expr,
> (my own c++ code uses that, for instance)
>
>http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5089
>
More information about the Gcc-prs
mailing list