This is the mail archive of the gcc@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: Rename -W to -Wextra ?


 > 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?


Phil,

Adding -Wextra as an alias for -W is fine, but IMHO removing -W is
not.  Why invalidate people's Makefiles and configure scripts that
have worked for a decade?  For the same reason, we should not issue a
"deprecated" warning when using -W.

Just make -Wextra the *documented* way to get the extra warnings and
you'll solve the problem of explaining to newbies what the flag means.

Those who already use -W in their config already know what it does.

		--Kaveh

--
Kaveh R. Ghazi			Director of Systems Architecture
ghazi@caip.rutgers.edu		Qwest Solutions


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