This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning flags for unsigned operations (unsafe)
- From: Robert Dewar <dewar at gnat dot com>
- To: "Thomas R. Truscott" <trt at cs dot duke dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 22 Sep 2004 11:38:19 -0400
- Subject: Re: Warning flags for unsigned operations (unsafe)
- References: <200409221435.i8MEZYX0009371@minie.cs.duke.edu>
By the way, as always with suggested warnings, the best approach
is to implement the warning, and then apply it to a large body
of existing code. That gives a reasonable way of evaluating
a) if the warning is useful in the intended circumstances
b) if there is a problem with false positives
The burden for putting a warning in should be that yes, it
detects a significant number of suspicious cases, and it
does not generate too many false positives.