This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to deprecate casts as lvalues for C
- From: Michael Matz <matz at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Zack Weinberg <zack at codesourcery dot com>,"Joseph S. Myers" <jsm at polyomino dot org dot uk>,Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Date: Thu, 23 Oct 2003 00:52:36 +0200 (CEST)
- Subject: Re: Patch to deprecate casts as lvalues for C
On 23 Oct 2003, Gabriel Dos Reis wrote:
> "Zack Weinberg" <zack@codesourcery.com> writes:
> | I fail to see the problem.
>
> The problem is inappropriate use of pedwarn. If you don't want the
> diagnostic to turn into an error if -pedantic, don't use it. Use warning.
I feel that Gaby's warning should be heard. But at the same time I want
to question this behaviour. I (as user) don't understand why a warning
would be given as error with -pedantic. That option should activate some
more warnings (including this one), but definitely not turn any warnings
into errors.
Ciao,
Michael.