This is the mail archive of the gcc-patches@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: 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.


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