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: [PATCH] Make -Wcoverage-mismatch behavior sane.


> > Index: gcc/diagnostic.h
> > ===================================================================
> > --- gcc/diagnostic.h ? ?(revision 158822)
> > +++ gcc/diagnostic.h ? ?(working copy)
> > @@ -215,6 +215,12 @@
> > ?extern diagnostic_t diagnostic_classify_diagnostic (diagnostic_context *,
> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?int /* optidx */,
> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?diagnostic_t /* kind */);
> > +static inline diagnostic_t
> > +diagnostic_kind (diagnostic_context *context, int option_index)
> > +{
> > + ? ?return context->classify_diagnostic[option_index];
> > +}
> > +
> > ?extern bool diagnostic_report_diagnostic (diagnostic_context *,
> > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?diagnostic_info *);
> > ?#ifdef ATTRIBUTE_GCC_DIAG
> >
> >
> > I am not saying that you need to do this, you should wait until a
> > maintainer decides about the patch.
> 
> Sounds good.  We'll wait to here from Jan.

The patch is OK.  In a way I would prefer with the mismatch warning disabled still output
an inform (i.e. it is good to know what particular file is mismatching) but I guess others
might have different preferrences and the patch definitly improve the current situation.

Honza
/bin/bash: ./:q: Permission denied
> Neil
> 
> >
> > Cheers,
> >
> > Manuel.
> 
> 
> 
> --
> Neil Vachharajani
> Google
> 650-214-1804


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