c++/5089: -Wold-style-cast warns about cast to void
Jeffrey Turner
jturner@mail.alum.rpi.edu
Wed Jan 2 10:48:00 GMT 2002
>Synopsis: -Wold-style-cast warns about cast to void
>
>State-Changed-From-To: analyzed->closed
>State-Changed-By: nathan
>State-Changed-When: Wed Jan 2 05:59:02 2002
>State-Changed-Why:
> 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
>
> PR c++/5089
> * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
>
> 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
>
> PR c++/5089
> * decl2.c (reparse_absdcl_as_casts): Don't warn about casts to void.
I still think this is a mistake. If I want to be warned
about old-style casts then the compiler should _always_
oblige. It should be up to the programmer whether or not
to ignore compiler warnings. That was the premise of C.
I still think it's valid to let the programmer decide
rather than the stupid compiler. How else will we catch
all the archaic code that hopefully should be eliminated?
--Jeff Turner
Who put the Sam in the "'Sama Laden Ding-Dong"?
More information about the Gcc-bugs
mailing list