Rename -W to -Wextra ?
Russ Allbery
rra@stanford.edu
Mon Jun 3 16:12:00 GMT 2002
mike stump <mrs@windriver.com> writes:
>> From: "Wheeler, Fred (Research)" <wheeler@crd.ge.com>
>> To: "'gcc@gcc.gnu.org'" <gcc@gcc.gnu.org>
>> Cc: "'phil@jaj.com'" <phil@jaj.com>
>> Date: Mon, 3 Jun 2002 10:07:20 -0400
>> I think -Wallall should add absolutely every -W* option that exists
>> now or is added in the future.
> I am more interested in a survey of 20 people that have large projects
> that tried to use such an option and whether they thought there was any
> use for it.
It would be completely unusable for INN, at least. Among the warning
options that I'll never bother trying to make INN cleanly compile under
are:
-Wtraditional INN only supports ANSI C; this is irrelevant.
-Wid-clash I really don't care about systems that old.
-Wconversion Really only useful when converting K&R code.
-Wmissing-noreturn The compiler isn't going to guess well enough.
Note that all of these warning options are useful in specific places. For
example, when converting K&R code to ANSI C, turning on -Wtraditional and
-Wconversion is useful in finding iffy spots that need manual review. But
they can't be left on all the time; there are too many false positives
that just result in casts and other such things uglifying the code to no
purpose other than removing warnings.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the Gcc
mailing list