From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16481 invoked by alias); 2 Jan 2002 18:56:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16457 invoked by uid 71); 2 Jan 2002 18:56:01 -0000 Date: Wed, 02 Jan 2002 10:56:00 -0000 Message-ID: <20020102185601.16456.qmail@sources.redhat.com> To: nathan@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Jeffrey Turner" Subject: Re: c++/5089: -Wold-style-cast warns about cast to void Reply-To: "Jeffrey Turner" X-SW-Source: 2002-01/txt/msg00075.txt.bz2 List-Id: The following reply was made to PR c++/5089; it has been noted by GNATS. From: "Jeffrey Turner" To: , , , , mputer.org@LOCALHOST, Cc: Subject: Re: c++/5089: -Wold-style-cast warns about cast to void Date: Wed, 2 Jan 2002 14:02:59 -0500 >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 > > PR c++/5089 > * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts. > > 2002-01-02 Nathan Sidwell > > 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"?