This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rename -W to -Wextra ?
On Mon, Jun 03, 2002 at 10:51:24PM -0700, Joe Buck wrote:
> > > Well, I think it mostly depends on whether you see any utility in
> > > recovering -W to mean what -Wall currently means. If that's the long
> > > term goal, -W needs to be deprecated and then removed entirely for a
> > > release or two, IMO, before it changes functionality.
>
> > I think changing -W to mean something different is an even worse idea
> > than eliminating it. :-(
>
> I don't think that eliminating -W is an option at all. We're stuck with
> it. We could add -Wextra as a synonym, but that's about it. It's too
> commonly used and has been in gcc for over a decade.
Okay, a revised proposal:
- recognize both -W and -Wextra
- for --help output and in the manual, only describe -Wextra
- document all the little extra things that -W[extra] currently does
i.e., print no deprecation warnings for -W, leave it in there, but don't
advertise it anymore. It's too confusing.
I can do the above, no problem. Right now I do not have the time to split
out -Wextra into 20 separate options, or to split out extra_warnings into
20 separate variables. However, the updates to the manual should help
anyone who wants to do so.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams