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: RFC: Named warnings


On Friday, Jan 24, 2003, at 02:14 America/New_York, Neil Booth wrote:

Stan Shebs wrote:-

So as a first step I propose that all of GCC's warnings be made
individually controllable, and that all future warnings always get a
control when they are added to the compiler.
I support this in principle, but I think making each warning
controllable is too fine-grained.  For example, the C parser work I'm
doing emits many quite different warnings to the current parser.
One important argument against controlling individual warnings is
readability of source code. Exact warning messages tend to change
a lot: one overly generic warning may be split in two more specific
ones, for example.

Having very specific pragmas to control each individual warning
will lead to a lot of clutter in sources that needs to be updated
when switching compiler versions.

  -Geert


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