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


I must say my reaction is that the very fine control over warnings seems
a bit of overkill, but perhaps there is more of a problem with "bad" warnings
in g++ and gnu c than in gnat (I don't have the experience to make that
judgment). In GNAT, we group warnings under about 10 different categories
that can be separately controlled by either compile time switches or by
pragmas that can turn on and off these various categories of warnings.
In addition we have a general facility for turning warnings on and off
with pragmas (all warnings). This has proved quite adequate, and in fact
we have not had any requests at all to provide any more specific control.

The trouble with over-specific control is that warning messages are the
sort of thing that change frequently as they are improved and sharpened,
and you don't want to have people chasing after them by dealing with
new warning codes that now appear in the text of the program.


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