This is the mail archive of the gcc-patches@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: warning message control: jumbo patch so far


DJ Delorie <dj@redhat.com> writes:

| > follow up with a patch
| 
| >   * that adds a field "show_options" to diagnostic_context, that
| >     consistently play the role of diagnostic_show_options;
| >   * that has this
| > 
| > | +  if (opt && ! option_enabled (opt))
| > | +    return;
| > | +
| >                    done by report_diagnostic.  That for example,
| >     ensures that any diagnostic kind (error, warning, note, ...) has
| >     it checked properly.
| 
| Well, one of our customers wants to be able to silence certain
| pedantic errors, so I'm working in this direction anyway ;-)

great!

| pedwarn() will eventually have to have the extra option_index
| parameter too, perhaps error() et al also.

Yes, understood.  When those are properly converted, then
error(), warning(), pedwarn() would just be syntactic convenience over
report_diagnostic().

-- Gaby


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