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: Mixed declarations and code


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

> On Sun, 6 Jul 2003, Michael Culbertson wrote:
>
>> the newest version of gcc.  So, I wrote a brief patch that adds
>> -Wmixed-declarations to this effect.  Since I am not a gcc
>> developer (this is the first time I've peeked ``under the hood''),
>> I don't know if this is the best way (or even a good way) to
>> accomplish the task, but I thought I'd hand it off to you guys in
>> case others would like such a switch.
>
> The intended design for this (to be implemented before C99 mode becomes
> the default, but that (unlike this warning) depends on C99 implementation
> being finished, for which there is no schedule) is a warning called -Wc89
> or -Wc90.
...

You're making the perfect the enemy of the good.  As you say, there is
no schedule for completion of C99 features, including -Wc90.  Michael
here has a need for one warning right now.  I think we should give it
to him.

zw


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