This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Named warnings
- From: Geert Bosch <bosch at gnat dot com>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 24 Jan 2003 16:43:57 -0500
- Subject: 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