Rename -W to -Wextra ?
Russ Allbery
rra@stanford.edu
Mon Jun 3 02:56:00 GMT 2002
Phil Edwards <phil@jaj.com> writes:
> So, here's a proposal just to generate dicussion:
> - that the new name be '-Wextra'
> - for 3.2, recognize both -Wextra and -W. If -W is used, warn that it
> has been renamed and will be removed...
> - ...in GCC 3.3 or 3.4, -W goes away. Whatever version we decide, include
> that number in the warning.
> Thoughts?
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.
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.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the Gcc
mailing list