This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36390] Unused variable warning should be more useful
- From: "eugene dot zelenko at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2008 23:32:07 -0000
- Subject: [Bug c/36390] Unused variable warning should be more useful
- References: <bug-36390-16262@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from eugene dot zelenko at gmail dot com 2008-08-14 23:32 -------
I think unused variable warning should be expanded for all cases where variable
used only as lvalue. As result some useless computations could be avoided.
Coverity Prevent warn about such situations with one of its checkers. But
Coverity is too huge and slow tool, so GCC could definitely be better for such
diagnostics.
--
eugene dot zelenko at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eugene dot zelenko at gmail
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36390