This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/5089: -Wold-style-cast warns about cast to void


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
>
                 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]