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 02:56:35AM -0700, Russ Allbery wrote:
> It would be kind of cool if GCC could eventually reclaim -W to mean the
> same thing as -Wall does now. That would make a lot more sense to me at
> least, to use -W to turn on the most commonly used set of warnings.
You've been reading my list of "things to suggest for 3.9" haven't you?
> I agree that the current meaning is just weird, and at least for me the
> fiddling about with makefiles that would be required for this change would
> be worth it for making things less strange for new users.
We'll have to play a minor game in GCC's own makefiles, because we're
passing -W during bootstrapping. And if we do emit a -W-is-deprecated
warning, we shouldn't do it while building our own program! Of course
we can't change -W to -Wextra in Makefile.in since nobody's installed GCC
will know about -Wextra yet.
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