This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wuninitialized issues
On Wed, 2005-11-02 at 20:35 -0500, Kaveh R. Ghazi wrote:
> > Have another option to detect variables which are set but their values
> > are not used (this was in one of the -Wuninitialized bugs and has been
> > asked before). The EDG front-end implements this option.
> > Andrew Pinski
>
> The sgi compiler detects this also. I'd really like gcc to have it,
> but it seems to be an orthogonal project.
I'd be real curious to know how they did this. Particularly since
it plays into a lot of the same questions. OK, not curious enough
to go look at their code myself :-)
For example, if the only use was inside an unreachable hunk of
code, does that count as a use or not?
jeff