This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20459] Warning for variables that are set but not used
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Mar 2007 14:24:11 -0000
- Subject: [Bug c/20459] Warning for variables that are set but not used
- References: <bug-20459-5009@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from manu at gcc dot gnu dot org 2007-03-02 14:24 -------
(In reply to comment #3)
> Does the patch need some work to remain up to date ?
The patch is from 2005, so I guess it is outdated. You would need to examine
what are the conflicts and try to fix them. I find easier to do this by
updating update a subversion working copy to 'Mar 2005', apply the patch, then
'svn up' and examine the conflicts.
Even if the patch applies, there is no guarantee that it actually compiles or
works. For example, 'warning' now has an additional parameter, so you would
need to replace it with 'warning (0,'.
Anyway, I am not sure whether a whole pass to implement this warning is
actually needed or worth of it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20459