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 RFC: -Wstrict-overflow


On Thu, Feb 01, 2007 at 11:24:13PM -0800, Mark Mitchell wrote:
> > What do people think about different levels for -Wstrict-overflow?  My
> > main concern with that would be classifying them in the first place,
> > and maintaining the classification over time.
> 
> I suppose we could also give them different warning codes, so that the
> fine-grained warning stuff could turn them on independently.  That
> doesn't do anything to change your concern; it's just a UI option.  I
> hate to raise the bar, but I guess I think that either levels or
> separable control of the warnings would make the feature more useful,
> since some of the cases do seem more likely to be dangerous than others.

I suspect that more levels will make people less inclined to figure out
which one they need and what they all really do.

Everything I've seen so far suggests that this probably ought to be
included in -Wextra: warn about sketchy things that the compiler thinks
might be a problem, if you're willing to contort your code to make the
compiler happier.

I could be persuaded to two levels if someone can pick out a subset
that are actually useful in -Wall.

-- 
Daniel Jacobowitz
CodeSourcery


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